Milan Italy
Posts: 4 since Mar 2020
Thanks Given: 1
Thanks Received: 0
|
If a certain bar satisfy some conditions this will be the first "trigger bar". What I need to do is write a code that store the High and the Low value of this trigger bar and send orders to market for buying and selling not only fore next bar, but also for all the following bars until a new "trigger bar" is identified (you can see also from the pictures I sent you).
MP is always =1 or -1.
going back to your question:
for buy, what i understand is it will buy whenever it break the trigger bar high, but when you have position when do you sell?
The system should sell when the low of a trigger bar is violated. It will never be MP=2 or MP=-2. If a double long or short signal is received it will stay in the position.
Hope is clear. Thanks!
|