Vienna and Austria
Posts: 36 since Jul 2021
Thanks Given: 21
Thanks Received: 7
|
Why does this not open shortpositions at lowest(low,10)[1]?
Thank you!
If close > Highest(High, 10)[1] Then
Buy ("Go Long") next bar at open;
If close < Lowest(Low, 10)[1] then;
Sell Short ("Go Short") next bar at open;
If MarketPosition = 1 Then Begin
If BarsSinceEntry >= 10 Then
Sell this bar at Close;
END;
If MarketPosition = - 1 Then Begin
If BarsSinceEntry >= 10 Then
Sell this bar at Close;
end;
|