I'm trying to build a strategy using this indicator, but I have a problem:
- how can we define the Trend in a strategy ?
I thought that it was something like:
------------------
TSU=TSSuperTrend(14, TradingStudies.NinjaScript.Utility.MovingAverageTy pe.HMA, 2.618, 14, TradingStudies.NinjaScript.Utility.SuperTrendMode. ATR).UpTrend[0];
if ((TSU < Close[0]){
EnterLong(DefaultQuantity, "");
}
------------------
but it seems this is not...
Has anyone has a quick example of a strategy based on this indicator, or is able to tell me what is wrong ?
Thx.
edit: never mind, found what I was looking for...
Comment