Must both conditions to be meet at the same time/candle?
Posts made by josecortesllobat
-
RE: Two conditions are met.posted in Questions & Answers
-
RE: Help pliss =(posted in Questions & Answers
This might be a first approach


Sell pending level could be triggered before Buy order TP is reached. If it is so, you will have 2 opposite orders at the same time. In this case, it Will be required to add a condition to close the buy order.
-
RE: KAMA indicator wont show in backtesting!posted in Questions & Answers
Could you share the ex4 indicator's file to check it out?
-
RE: Automatic string building for a commentposted in Questions & Answers
Hi @fxDreema
Thanks for your support.
What I would like to have is a way to automatically create a string to manage the opened trades in blocks like "For each trade".
As an example. My Project opens (n) trades when the condition to enter at market is met. The loop creates (n) trades labelling each trade with a unique group number using a variable that is modified each time that loop passes:


Then, if n = 6 & positionIdBuy = 0, it is opened 6 trades with group numbers: 1,2,3,4,5,6.
I have created a string for using it in the "Filter by group" field available in blocks like the pink ones to do something depending on the conditions of the trade with the last group number. Like as follows


So, if (n) = 6, "LastTradeNumberBuysM3 = 6". But if the project's logic decides to open 10 trades (n = 10), the variable "LastTradeNumberBuysM3" Will be modified automatically to 10.
What I would like is to know if it is posible to create automatically a string that includes the group number of all the trades opened by the loop as the loop is ran. Like
loop pass = 1 -> TradesOpened=(string)positionId1;
loop pass = 2 -> TradesOpened=(string)positionId1+","+(string)positionId2;
loop pass = 3 -> TradesOpened=(string)positionId1+","+(string)positionId2+","+(string)positionId3;
.
.
.
loop pass = (n) -> TradesOpened=(string)positionId1+","+(string)positionId2+","+(string)positionId3+","+…+(string)positionId(n);Then, the result string Will be:
loop pass = 1 -> TradesOpened=1
loop pass = 2 -> TradesOpened=1,2
loop pass = 3 -> TradesOpened=1,2,3
.
.
.
loop pass = (n) -> TradesOpened=1,2,3,...,(n)Any suggestion or idea Will be very welcome.
-
Automatic string building for a commentposted in Questions & Answers
Hello
Please I would need some help to figure out what I would like to build.
Thanks to @roar I have been able to open several trades using his loop logic suggestion. Thanks to @miro1360 I could add the group number for each trade created by the loop into the "comment" field.
Then, the logic to open the trades is as follows:
n_Trades = 10 (loop Will pass 10 times)
Loop -> Trade1 (Id =1), Trade2 (Id = 2), …, Trade10 (Id = 10)n_Trades = n (loop Will pass n times)
Loop -> Trade1 (Id =1), Trade2 (Id = 2), …, Trade(n-1) (Id = n-1), Trade(n) (Id = n)What I would like to have is a block placed in the loop's logic that automatically creates a string that includes all the opened Id trades from the first one to the last one. Something like
AllOpenIds = (string)Id1","+(string)Id2","+ … +(string)Id(n-1)","+(string)Id(n);

Because the number of trades to be opened is a variable, the string content will also be variable depending on how many trades the loop opens.
Any help Will be very welcome.
Thanks
-
RE: Testing multiple EAs without conflict?posted in Questions & Answers
Take care of the "MagicNumber". 2 EAs must not have the same MagicNumber.
https://fxdreema.com/tutorial/builder/groups-and-magic-numbers
-
RE: How To Extract data from every barposted in Questions & Answers
I think this is not related to fxDreema.
I think it is possible to get the bars data from any data resource available over the net mainly if you want to get it in a CSV file.
I think it is also possible to export the bars data from MetaTrader using the "Symbols" menu (Ctrl+U)

-
RE: it gives me error ^ invalid value!posted in Questions & Answers
Here you have a good example given by @miro1360 in which you can see what you want to code.
-
RE: it gives me error ^ invalid value!posted in Questions & Answers
I think you have to use a MQL math function
-
RE: Could some friend help me?posted in Questions & Answers
"Thanks GOD of trading to let @miro1360 be with us"
WFA = Walk-Forward Analysis
-
RE: Question about 'on trade (Event Data)'posted in Questions & Answers
Hello
I have found a way in one of the @miro1360 post
https://fxdreema.com/forum/topic/4608/field-comment-to-sell-now-block/2
Thanks
-
RE: Question about 'on trade (Event Data)'posted in Questions & Answers
How can I add the variable "position_id" to the "comment" field in the Sell/Buy block in order to show the group# for each trade created in the loop?

Thanks
-
RE: Why don't work well??posted in Questions & Answers
Then, maybe the problem is in other place of the Project.
-
RE: "Sell now" block does not have Slippage fieldposted in Bug Reports
Yes, totally agree. Don't waste too much time on this.
Thanks
-
"Sell now" block does not have Slippage fieldposted in Bug Reports
It looks like the "Slippage" field at "More settings" in the "Sell now" block is missing.

-
RE: Why don't work well??posted in Questions & Answers
It might be possible that you need to reset the variable "lotsSells" at some point of the Project.
-
RE: Change Trailing Stopposted in Questions & Answers
That workflow is not correct. "Trailing stop" block will be active just one time after the "Break even" block passed and never more. So, you will never get a TS as it is.
Check this out


