Support:
The EA design launches a trade every hour. By design, the EA should only open one "same direction" trade per hour. The EA (by design) is allowed to open "dissimilar direction" trades as many times as the conditions for such executions returns true.
The problem is that "same direction" trades are being executed after the initial trade gets closed during the hour it was executed. This changes the design logic entirely, as "same direction" trades are being opened at market levels that are not part of the design. This presents both a basic and a serious problem.
Given the design functionality of the SB Trade Manager, I am not allowed to set the function to "Wait Until... ." I am forced to use the function "Default." Or, said another way - given the design of the SB Trade Manager's "Wait Until..." function, there is no logical option for controlling the execution of "Same Direction." The "Default" setting by definition will allow "Same Direction" trades as a natural occurrence. So, that's no real option either.
Having the ability to control when your trade gets executed, is one of the most fundamentally concepts that provide the trader with sovereignty over trade execution. It also goes to the heart of well designed trading systems. Not having the ability to control the execution of "Same Direction" trades, merely because the conditions that allow such trades remain "true," is a massive problem for a whole host of more complex trading system designs that utilize a multi-signal code base.
So, here's what I'm left with a solution:
I have to re-code every single trade signal (and I mean every one of them!), link each one to its own DayOfWeek()/TimeHour()/TimeMinute() method, then link each code block to its own Buy/Sell function (icon) and then connect to each one of them (individually) their own unique CL/CS function (icon) complete with its own unique MQL for closing each trade type.
I mean.... really?
That's a massive amount of work and the debugging phase will cause me to start drinking alcohol on a permanent basis, if I am not extremely careful with the initial code build. All of this... because I'm not allowed to control one of the most basic and fundamental events in all of trading.
Please tell me that there is a far better way to accomplish this with a whole lot less fuss?
How about adding a function called something like "Trade Executions Allowed" Create one drop-down-list box that allows the trader to set the total number of trades to be executed, then create another drop-down-list box that allows the trader to set the time interval for the number of trades to be executed. So, the entire function might read like:
Field Name (added to bottom of Sell and Buy icons): Trade Executions Allowed
Allow {List Box} (1) Trade Per {List Box} (1) {Combo Box} MinuteIn my case, the settings would look like:
Allow {List Box} (1) Trade Per {List Box} (1) {Combo Box} HourThis would save a massive amount of work on the trader's part and it would simplify the EA design by multiple orders of magnitude in return.
Hope this helps.
cfx