Pages

(Help) How to get indicator to read from Daily Chart?

vendredi 21 octobre 2016
I get array out of range when i try to pull info from a chart im not backtesting on...


double CalcFibo2()
{
int LowBar = 0, HighBar= 0;
double LowValue = 0 ,HighValue = 0;

int lowest_bar = iLowest(NULL,0,MODE_LOW,BarsBack2,StartBar);
int highest_bar = iHighest(NULL,0,MODE_HIGH,BarsBack2,StartBar);

double higher_point = 0;
double lower_point = 0;
HighValue=High[highest_bar];
LowValue=Low[lowest_bar];

double fibo = (Ask-LowValue)/(HighValue-LowValue);
// Print(fibo);
return fibo;
}


(Help) How to get indicator to read from Daily Chart?

Aucun commentaire:

Enregistrer un commentaire