I have attached an image showing the exact range I need to scan. Please assist.
This is not correct obviously but what I need is for somebody to make a working version.
if(CrossBelow(MACD(12, 26, 9).Avg, 0, 1))
{
double highestPriceHighAboveZero = 0;
for(int i = 0; i < CurrentBar; i++)
{
double macd = MACD(12, 26, 9).Avg[i];
if( something )
{
Find the highest price high the last tiem macd was greater than zero
by looping through historical data
}
}
}
Comment