Hi all,
for those not sure or in doubt like me,
Heres an example of a snippet of code where TG uses the icustom function to call on the indi.
Open the metaeditor you use for code, click on the 'edit' tab, look for 'find' and do a search using 'find' for the word 'icustom' . This should bring up about a dozen lines (each highlighted each time you press 'find next') that look like this ;
Code: Select all
StLower = iCustom(NULL, HtfStTimeFrame,"SuperTrend (1)", Nbr_Periods, Multiplier, 1, shift);
Make sure the Indi name , in this case "SuperTrend (1)" is the same as the name used for the Indi.
You dont have to open the indi in the metaeditor , just confirm that the name used is identical to the name of the indi in your custom indicator folder of the TrendyGary EA platform.
Then, once compiled again just in case. Then, follow the positions the EA takes with a chart that has the indi attached to it. It should follow the rules stipulated in post 1. Dont forget to re-load the set file s after compiling again, as it can reset itself back to defaults. Good opportunity to HardCode the EA too.
Mine are all correct, but maybe the compulation 'jiggles' TG's ....bionic arms, and gets things going again.
There is one line that is not showing as above though , and thats all it take you know?. I may be wrong, but heres the snippet where the code used the Get function as in "void GetSuperTrend(int shift)", and maybe Steve, or a coder can look it up and see if it does in fact flow through the code. The "void" in the front of the code line confuses me.
Code: Select all
}//End void CalculateDailyResult()
void GetSuperTrend(int shift)
{
//StVal is the close of candle[1] and PrevStVal is candle[2].
On another note, i'm a little concerned, once this trending of the markets ends, what will my winning version of TG have left to buy because thats all it does is BUY (reminds me of my wife), or will i be waiting till the end-of-days for a losing position to go back into positive territory again and JS out.? Will leave as-is to find out. Playing around with two other demos, one on markets.com criminal and other on Global Prime ECN broker.
regards
cuz