Condition x>
-
Hi,
I can't get sorted this out:

Pivot is a Variable.
The Buy part is fired, the Sell not.i. e. Cross overs above the pivot line are working (not always, but mostly), below newer.
The blue dashed line is the pivot line:
![2016-10-22 18_01_44-500162830_ GKFX-Demo-1 - Demokonto - [EURUSD,M15 (visual)].png](/forum/uploads/files/1477152110-4091-14368.png)
Any help much appreciated.
Thanks
Mic......
2016-10-22 17_58_06-Forex Pivot.png
2016-10-22 18_01_44-500162830_ GKFX-Demo-1 - Demokonto - [EURUSD,M15 (visual)].png -
Well, if I run the backtest long enough, some sells start to appear for me. But you have the same Pivot variable used in both blocks - 37 and 38. Its value is either above or below the current price. Are you sure you want to use the same variable in both blocks?
Note that because you have "No trade" above like that, when you have one trade, no other trades can be created - no more buys, no more sells. 1 trade at a given moment.
-
Yes, I want to have the same Pivot in both blocks.
In case it's running under it, I want a Sell order in case it runs above, I want a Buy order.Is there a good way to implement a threshhold?
Let's say I want to Buy if Pivot crosses +10 and Sell if it crosses -10.
Is the only way to do it generate two variables, P1=Pivot+10 and P2=Pivot-10?Thanks for the "no trade" hint, that makes absalutly sense

Thanks for your support.
Mic -