@faris123
Hi! I'm fine, thanks, and you?
Lets keep it inside this forum, I don't have the time for multiple channels lol
@faris123
Hi! I'm fine, thanks, and you?
Lets keep it inside this forum, I don't have the time for multiple channels lol
@wessel Well, obviously my system was just too bad to work with real data.
If you want to reliably use OHLC testing (for faster backtesting), design your system in a way it doesn't use very tight stops or fast intra-bar changes. Best practise is to put "once per bar" on top of your project.
@sami92 Thank you for the reply! I hate to say this, but the statistics are very alarming: 33 trades and already 25% drawdown. Think about it, how likely it is that a 90% drawdown happens before your 100th trade? A 10% probability? 15% probability? How much risk are you willing to take?
I don't think its possible, directly.
You could use an array and compute the "moving average" in the code, by yourself, but its going to take some work.
https://fxdreema.com/shared/z8BKaJhue
This should be quite close to what you need. Condition for buying is that candle low is above MA, selling if candle high is below MA. You may want to change it to "cross above" instead of "above" etc.
I will return next week.
@cerrase When solving a messy problem like this, its better to simplify the project as much as possible. https://fxdreema.com/shared/hPVsl51sd
Here is a bot that buys at candle open and closes the trade at candle close. If 2 profit trades, it passes 3 trades. This concept works, yeah? We can build from here.
@ambrogio
Here's a couple examples where there is no gain of setting ID 1 instead of 0, only lag:

It's just for argument's sake. I do use ID1 nearly every time.
@ambrogio said in Problems using candle ID0 instead candle ID1:
@roar could you give an example where it is more logical to use the ID0 candle?
When you need to be as fast as possible. Lets say an EA is designed for trading the NFP turbulence, waiting for the bar to pass is too late.
It is a rare case, but 0 is still the logical starting point.
You can only go up from there: 1,2,3....
If it was 1, you could go up: 2,3,4,5... but also down: 0
@ambrogio You mean, changing the default ID value to 1 in all fxDreema projects?
ID 1 is surely useful in most cases, but I think 0 is still a more logical default value. If it was changed to 1, some scalper would be asking in this forum "why the hell are all my signals lagging one bar", "why doesn't the indexing start from the smallest value, 0"
@cerrase There must be something with the counter blocks that I dont understand. Here's a version with a counter variable: https://fxdreema.com/shared/pCy2h2Msd
@cerrase I can't replicate your result, because my H4 bars cut at different point in time. Could you please use H1 for testing.
I think the EA would be improved with a "Counter: Reset", so it will not remember the old passes:
https://fxdreema.com/shared/WsEH7SAed
@seemab Ok, so when trade opens -> check profit -> 0 is greater than -100 -> close trade
@seemab Why the constant is named "loss"? What is its value?
@cerrase I can't replicate your result. Try this version, buy and sell should be perfect mirror:
https://fxdreema.com/shared/dCoCmFhLd
@cerrase said in After profitable position pass n position:
@roar it use candle open for signal not breaks.
Use "cross above/below" in the condition for the breaks: https://fxdreema.com/shared/WOdeKQKae
@cerrase Are you using the latest version I shared?
https://fxdreema.com/shared/wUeFdk9ve

Perhaps you want the whole candle to be above / below the MA, then use this: https://fxdreema.com/shared/o7HGBJbD
@cerrase
The first block was using "candle low", I corrected it to "candle close"
https://fxdreema.com/shared/eKsf60nyb
@andy10e6
Perhaps you just made a mistake in some setting.. Here's a simple setup:
https://fxdreema.com/shared/9eXGa602c

Secondly, it seems you just used the wrong counter block 
Easy fix.
https://fxdreema.com/shared/8M4ghadOd
Edit: oops a mistake in "no trade (sell)", just connect it like the "no trade (buy)"
Here's the files, in case you have the basic version. I recommend buying the subscription, though, 10 connections usually aren't enough for anything.
0_1552754595140_unnamed.ex4