Forums › ProRealTime English forum › ProOrder support › Discussing the strategy VECTORIAL DAX (M5) › Reply To: Discussing the strategy VECTORIAL DAX (M5)
10/30/2019 at 6:15 PM
#111701
Hello,
an order is given and it does not pass or pass.
I retrieve the time and the number of positions.
1 2 3 |
countPOsBUY=COUNTOFLONGSHARES CountTime = time NBPOS=PositionSizeLong |
I let the algorithm be read in full.
in a lower unit.
if the conditions are good I give the order to place the order.
1 2 3 4 5 6 |
ut=100 if countPosBUY=COUNTOFLONGSHARES and CurrentDayOfWeek <6 and CountTime +UT <time and CountTime +(UT*3)>time and open<close then BUY PositionSizeLong *NbPos CONTRACT AT MARKET SET STOP %LOSS 2 ACM=1 endif |