First apologies my English.
I pray that if something is not understood pregunteis me please.
I need help setting up a strategy to consider simple but driving me a little crazy, my level of programming is very basic, which is why I ask for help, I am assuming that the little that is programmed with the Strategy Wizard.
See if you can help me:
Deputy screenshot to make it easier to interpret what I will tell you.
Only use an indicator:
DMplus-v3
The script of the strategy would be:
The first thing that intraday strategy would therefore need a filter schedule.
Start time and end time of operation of the system, the end time would also close the position if in the market.
System rules:
Open long with a market order when the ADXabove is equal to or greater than the Upper line and the + DI is equal to or greater than the Lower line and below the Lower come. We close with a long ax tick limit order and put a Stop Loss ax tick protection.
Short open with a market order when the ADXabove equals or exceeds line-Di Upper and equals or exceeds Lower line and below the Lower come. We close with a short ax tick limit order and put a Stop Loss ax tick protection.
System parameters, ie what I'd like it to be optimizable, I say this because I can not find a way to make the Upper is a variable parameter.
-Period: I will be able to modify the period.
-Upper: I will be able to change how high I want to cut the ADXabove.
-Lower: I serve to modify how high I want you to make cut both the + DI and-DI.
-X tick gain: I will serve to optimize the number of tick in profits.
-X tick lost: I will serve to optimize the number of tick in losses.
-Start time
-End Time.
The red arrow represent the time of a sales order.
The green arrow represent the time of a purchase order.