Seattle
Experience: Intermediate
Platform: Ninja, TS
Trading: Futures, EURUSD, EURJPY
Posts: 7 since Nov 2010
Thanks Given: 1
Thanks Received: 1
|
Attached is an image of the indicator in action and below is what I would like to turn into conditions for entering ..
every time I try to make the Generic Strategy work I break NJ 7 so bad that it won't import scripts any more so I have to manually delete the .CS file to fix it... I am missing some basic understanding or something...
// Trend detection and alerts
if (C >= _bb.Upper[0] && C > _cma[0] && _macd[0] > 0)
{
_state = TrendState.Up;
this.BarColor = Color.DarkGreen;
if (_state != previousState)
{
this.PlaySound("Alert1.wav");
this.DrawArrowUp("up"+CurrentBar, 0, Low[0]-TickSize, Color.Cyan);
}
}
else if (C <= _bb.Lower[0] && C < _cma[0] && _macd[0] < 0)
{
_state = TrendState.Down;
this.BarColor = Color.DarkRed;
if (_state != previousState)
{
this.PlaySound("Alert1.wav");
this.DrawArrowDown("down"+CurrentBar, 0, High[0]+TickSize, Color.Magenta);
}
}
|