Edit Your Comment
How to get indicator to read from Daily Chart?
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
Oct 21, 2016 at 18:11
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
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;
}
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;
}
if you follow the flock like sheep you always end up stepping in shit!
तबसे मेंबर है Aug 20, 2009
256 पोस्टों
Oct 21, 2016 at 19:35
तबसे मेंबर है Aug 20, 2009
256 पोस्टों
sirius1fx posted:
I get array out of range when i try to pull info from a chart im not backtesting on...
Please elaborate......
This code will only return info on the current symbol......
Wealth Creation Through Technology
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
Oct 21, 2016 at 19:48
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
Yes im trying to change the period this code its working on, it seems i can only get it to work on the chart im backtesting on..
Id like to backtest on M15 but using the High/Low of the daily timeframe using CalcFibo as a filter...
Id like to backtest on M15 but using the High/Low of the daily timeframe using CalcFibo as a filter...
if you follow the flock like sheep you always end up stepping in shit!
तबसे मेंबर है Aug 20, 2009
256 पोस्टों
Oct 21, 2016 at 20:01
तबसे मेंबर है Aug 20, 2009
256 पोस्टों
This should do it.........
int lowest_bar = iLowest(NULL,PERIOD_D1,MODE_LOW,BarsBack2,StartBar);
int highest_bar = iHighest(NULL,PERIOD_D1,MODE_HIGH,BarsBack2,StartBar);
double higher_point = 0;
double lower_point = 0;
HighValue=iHigh(NULL,PERIOD_D1,highest_bar);
LowValue=iLow(NULL,PERIOD_D1,lowest_bar);
😀
int lowest_bar = iLowest(NULL,PERIOD_D1,MODE_LOW,BarsBack2,StartBar);
int highest_bar = iHighest(NULL,PERIOD_D1,MODE_HIGH,BarsBack2,StartBar);
double higher_point = 0;
double lower_point = 0;
HighValue=iHigh(NULL,PERIOD_D1,highest_bar);
LowValue=iLow(NULL,PERIOD_D1,lowest_bar);
😀
Wealth Creation Through Technology
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
Oct 21, 2016 at 21:00
तबसे मेंबर है Oct 23, 2012
341 पोस्टों
Awesome thanks bro, works perfect!😎
if you follow the flock like sheep you always end up stepping in shit!

*व्यवसायिक इस्तेमाल और स्पैम को ब्रदाश नहीं किया जाएगा, और इसका परिणाम खाता को बन्द करना भी हो सकता है.
टिप: किसी चित्र या यूट्यूब या URL को पोस्ट करने से वे अपने आप आपके पोस्ट में आजाएगा!
टिप: @ चिन्ह को टाइप करें उपभोगता के नाम को अपने आप करने के लिए जो इस चर्चा में भाग ले रहा है.