@xbuilder oh, I think I used the wrong function.
Change OrdersTotal() to OrdersHistoryTotal()
Posts made by roar
-
RE: EA TRADES ON BACKTEST BUT NOT ON DEMOposted in Questions & Answers
-
RE: EA TRADES ON BACKTEST BUT NOT ON DEMOposted in Questions & Answers
@xbuilder when there are 0 trades in history, the block doesnt know what to do. You have to make a special condition for that situation
https://fxdreema.com/shared/FIZBCbM7e -
RE: Does any know how I can apply the moving averages to an indicator?posted in Questions & Answers
@len-1 not possible in a sensible way.
Of course you can always create a data array, store all indicator values into that array, and calculate your own moving average based on the data. And then you have to figure out visualizing it as well. Its clumsy. -
RE: Ascending lot sizes in grid pending ordersposted in General Discussions
@mohammed66 hi.
Since the grid block doesnt seem to support this, you have to create your own grid loop, like this:
https://fxdreema.com/shared/4iPmiGbLdI'm afraid this will give you more questions than answers lol

-
RE: count arrows on chartposted in Questions & Answers
@tsheppo why are you counting the arrows? Surely the number is larger if the indicator has been running for 1 year than 1 day, that kind of thing shouldnt affect your strategy.
The system would have some sense if we set a maximum age for the arrows, like 100 candles, but fxdreema doesnt seem to allow checking the age.
I could spend hours and hours of my time to solve this for you, but I dont think the final result would be actually useful to anyone, not even you. I'm sorry.
-
RE: Random Pipsposted in Questions & Answers
@amincgi you need 4 functions:
- MathSrand() to initialize random number generator
- GetTickCount() inside MathSrand() to get new starting value each tick
- MathRand() to actually compute the random number
- MathMod() to "scale" the number between 0-5. (and then add 10).
-
RE: Problem with MT5posted in Questions & Answers
@michalp892 see my screenshot, theres "new project" button
-
RE: Problem with MT5posted in Questions & Answers
@michalp892 why dont you just create an mt5 project straight away? The conversion might cause these errors
-
RE: Problem with MT5posted in Questions & Answers
@michalp892 ok, then I'm sure we can solve this. Please create a shared link and I'll take a look

-
RE: EA dumpposted in Tutorials by Users
@biztet yeah, the main calculation in custom indis is usually just a couple lines (and they usually call the default indis and just combine them), the rest of the code is visuals, arrows, alerts and such.
-
RE: EA dumpposted in Tutorials by Users
@biztet I never use custom indicators. I like to model my own things, so I know their strengths and weaknesses and I can fine-tune them exactly to my liking
-
RE: EA dumpposted in Tutorials by Users
Hmm... Something interesting in here. I'm still looking for indicator that can best define the ranging period. Maybe the combination of STD and ATR can do the trick. Will give a try.
Go ahead, but I dont think its very comprehensive as a range identifier - it mainly detects the very very ugly patterns, close prices staying the same but large candle wicks...
-
RE: what did i do wrong ?posted in Questions & Answers
@fred2 your "once a day" probably executes its only execution of the day when the hours filter doesnt agree yet. Switch places of those 2 filters
-
RE: Testing pass stopped due to a critical error in the EA.posted in Questions & Answers
@xbuilder well, I'd need more information
-
RE: Testing pass stopped due to a critical error in the EA.posted in Questions & Answers
@xbuilder your EA has a zero divide.
-
RE: trades opening and closing within seconds of each otherposted in Questions & Answers
@jordanburch I dont get any trades in backtest
-
RE: Price pullback + pending order systemposted in Questions & Answers
@fm2020 use this setting:

Also, you can cut 90% of your project by using a loop. Create a variable for the candle ID, increase it by 1 in each loop iteration.
