Assumed, that I am using a simple Strategie that goes long/short under the following circumstances:
1) if (SMA(period)[0] > SMA(period)[1])
--> Enter Long
2) if (SMA(period)[0] < SMA(period)[1])
--> Enter Short
within that Strategie I am also using a simple Stop-Loss. For example something like that:
// if long
3) SetStopLoss(CalculationMode.Price, Math.Max(Close[0] - Distance, Close[1] - Distance));
To prevent, that this simple Strategy will re-enter after a stop-loss, I need to check within condition (1) and (2), whether the stop-loss (3) was hit or not in the last Bar.
How can I do that?
I found something about Monitoring - perhaps this is the right thing?
But I have no Idea how to use this in a simple way within my strategie.
Hope someone can give me a Hint
Regards
Trendseeker
Comment