I have a collection of a few simple indicators spread out over 3 time frames in an MT4 template. The indicators all appear to boil down to one crucial point or argument somewhere in the code to say something similar to:
There are probably errors in that simple example because I am authentically bad at programming. But I'm just trying to show that Variable1 is the primary deciding factor of how that particular indicator displays its custom chart objects.
My question is--
How do I write a new script to export this Variable1 value to a CSV file without including all the math from the original indicator? Is that even possible with iCustom?
So let's say:
Indicator1 has a crucial variable somewhere of Variable1 on H1
And Indicator2 has a crucial variable somewhere of Variable2 on H4
And Indicator3 has a crucial variable somewhere of Variable3 on D1
I ultimately want to write a script to process each of the three indicators and spit out a CSV as follows:
I'm under the impression iCustom is needed but that's sheer ignorance. Can I just use iCustom to pull the value of ***any*** defined variable from inside the custom indicator from like... anywhere inside the guts of that custom indicator...?? Or... does the custom indicator itself always run top to bottom on the symbol and time frame and end with certain values for the variables and only those variables are available with iCustom?
Clearly I have no idea what I'm doing. But I know what I'm trying to accomplish. Hopefully my words didn't make your heads explode. Any advice would be appreciated.
Thanks.
Inserted Code
if (Variable1 > 0) {chart something this way}; else if (Variable1 < 0) {chart it another way};
There are probably errors in that simple example because I am authentically bad at programming. But I'm just trying to show that Variable1 is the primary deciding factor of how that particular indicator displays its custom chart objects.
My question is--
How do I write a new script to export this Variable1 value to a CSV file without including all the math from the original indicator? Is that even possible with iCustom?
So let's say:
Indicator1 has a crucial variable somewhere of Variable1 on H1
And Indicator2 has a crucial variable somewhere of Variable2 on H4
And Indicator3 has a crucial variable somewhere of Variable3 on D1
I ultimately want to write a script to process each of the three indicators and spit out a CSV as follows:
Inserted Code
FileWrite(handle,"SYMBOL_Indicator1",DoubleToStr(Variable1,4),"SYMBOL_Indicator2",DoubleToStr(Variable2,4),"SYMBOL_Indicator3",DoubleToStr(Variable3,4));
I'm under the impression iCustom is needed but that's sheer ignorance. Can I just use iCustom to pull the value of ***any*** defined variable from inside the custom indicator from like... anywhere inside the guts of that custom indicator...?? Or... does the custom indicator itself always run top to bottom on the symbol and time frame and end with certain values for the variables and only those variables are available with iCustom?
Clearly I have no idea what I'm doing. But I know what I'm trying to accomplish. Hopefully my words didn't make your heads explode. Any advice would be appreciated.
Thanks.