|
Christian
2017-02-20 11:08:18
|
|
If I am getting a signal from my strategie I want to activate an trailing stop limit buy order for a few days
and only if actual price is higher than the high from yesterday I want to go into the market.
Now I tried that code on my demo strategie, but I am getting no order?
Signal = sma(50) >= SMA(200); // Simple signal for testing
Buy = hhv(Signal , 10) == 1; //Signal is valid for a few days
buyprice(ref(high,1),1);
SetSimTiming(_Buy,_StopLimit,-1);
Here an example picture: https://drive.google.com/file/d/0B0z7bjnANzXTQ0l2Q3ZoQUk2YUk/view?usp=sharing
|
|