i make a indicator like this
protected override void Initialize()
{
CalculateOnBarClose = true;
Overlay = false;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (CurrentBar<1)
return;
bool insideBar = (High[0] < High [1] && Low[0] > Low[1]);
if (insideBar)
{
BarColor = Color.Yellow;
}
}
The "insideBar" is showing correctly in chart.
I want to
1. trade on next bar
2. get the High/Low value of the "insidebar" that i can compare with current price.
3. just trade once untill next indicator appear.
Please guiding me instead of give me the code only if possible, thx a lot.
Sam
Rgds
Comment