Disliked{quote} - should start with simpler things, like coding a ma without using inbuilt functions - what's the point of collecting the mtf price data into arrays? The info already exists and is easily accesible, you don't need to store them. It's the equivalent of you trying to store the current chart ohlc into arrays to use.Ignored
The highPrc in my code is just an example ... it is actually for other purpose ...
but your idea is good for me to think again for my other project, and yes !t is indeed regarding ohlc price ...
Oh no, i just realize/ see that BR actually has posted an example in mql4, it was my bad ... Nice, will try to learn from his code first.
Thanks again great coders ...
Edit :
I see BR code: BR-Momentum-Dashboard , it is multi pair .... and for all time frames, we can choose just one tf from the drop down menu (using enum) :
Inserted Code
input ENUM_TIMEFRAMES timeframe = PERIOD_CURRENT;
one question:
if i want to make it for all of time frames from M1 to MN1 , it is better to put the tf in array like this :
Inserted Code
string allTimeFramesArr[] = {"M1","M5", .... , "MN1"}; or just define it one by one like this ?
Inserted Code
string allTimeFrames = "M1","M5", .... ,"MN1";
Edit again :
Sorry ... i just found the Fractal example by BR, will look at it
Never Giveup learning &improving...