Ok, it´s working.
Thanks a lot.
@wekaallaati
Thanks a lot, the issue was in the TP calculation, not in the object.
Hello fxDreema:
I want to make a syntetic chart, with envelopes, or BBands...etc. I can do it with the "Draw" block but I prefer put it in a subwindow, I can see the option but can´t do it.
Is this possible?
Thanks.
There is a very simple example without formula on bands.



Please can anyone give me a link with a example? I found some projects but don´t works for me.
Thanks.
How can I set the TP on a Object level? Or get value from it in to variable.
Thanks.

You need to open the mq4 file, and put // before "DrawSpreadinfo" , "Draw Status", etc.
Hello fxDreema.
I want to set the take profit at extension level, but I´m doing something wrong.
Thanks.


You only need the percent profitable trades in the backtest. It´s the only thing to check. If it gives more profitable trades than losers, you need to compare the value with the payout.
@andy said in Ticks per second in Market properties:
@Stroker Dark Moon Fx have some indicators that are free download, that might help you.
Nice web.
Hello fxDreema:
How can I use the "Ticks per second " condition? Seems it doesn´t work.
Thanks.

Fixed with eh block "loop next". And more simply code:
Hello FxDreema.ave a problem with the block "For each trade", it works fine on tester and can see the trace activity, but in Demo the EA don´t works because this block is stopped, It draw the first dot and no more, you can see in the images.
Tester:

Demo:

https://fxdreema.com/shared/cH6baD7Id
Thanks Roar, now is working fine, with check age. But now I need to get "current time frame" to change the Variables. For example I have a 10 min expiration in a 1 min timeframe, if the EA start in a 5 min timeframe, multiply by 5 the variable "mins to close".
Is this possible with a block or need a custom code?
Thanks.
The block "Bears in a row" works fine to open trades. But when I need to count candles in a trade It´s inaccurate. With this example the EA must close trades every 10 bars or at third bullish bar after a trade:
https://fxdreema.com/shared/ED03ge53b
But it doesn´t works.
The EA must buy after a bearish row, and here is the problem, because "when trade opens" the candle ID 1 is bearish on all trades.
I need to check every candle close after trade, not before. Seems easy to put a counter but with candle counters is not accurate.
In the example on the top you can see how the counter with "If trade, every 3 bars, Draw arrow. Sometimes draw in the trade candle, sometimes in the next...
Your help is much appreciated.
I´m looking to change Variables at first bear bar (with ID 1) after trade. I need to wait two candles to check the candle close on ID 1 and ID 2.
I tried it with counters, flags, candleCount... and it doesn´t work. I understand than candles close it´s not accurate, but two candles more or less is too much, I´m doing something wrong.
I need to check conditions: "if trade, every "n" bars", but it´s very imprecise, some times put the arrow in the trade candle and some times put it 4 candles before.
However it close trades every "n" bars very accurate. What I´m doing wrong?
https://fxdreema.com/shared/OiafPDcne
