Hello, I've watched 301 and 401 ninjatrader8 tutorials creating conditions utilising Indicators, copying the code from strategy builder and creating an indicator with it. They have been excellent but I'm having trouble generating code to indicate a candle has crossed or created a new high of the day using "Highesr bar" in Misc section or utilising Current Day OHL Indicator.
Also
Utilising the AOW median Indicator as a condition that my Indicator will not trigger if the high of [0] is for instance 15 ticks away from the median of the day going long.
And why the code
if ((Close[0] > Open[0])
&& (Close[0] - Open[0]) > (Close[1] - Open[1]))
{
BarBrush = Brush.RoyalBlue;
}
Won't indicate the current body of the green candle is greater in size than the previous smaller body green candle.
strategy builder is amazing to comprehend how code fits together after I transfer it to a new indicator script, kudos to the creator.
Is there any tutorials or does someone have a sample of this sort of code that I could follow to understand I've learnt more than i thought i could from strategy builder code
Thankyou in advance
Comment