Rank: Advanced Member
Groups: Registered, Registered Users, Subscribers, Unverified Users Joined: 10/28/2004(UTC) Posts: 3,111 Location: Perth, Western Australia
Was thanked: 16 time(s) in 16 post(s)
|
eddie.m wrote:The above formula cannot be referenced in Expert Advisors, Enhanced System Tester and Explorations because of the presence of the semi-colons. One semi-colon is enough to block references. The semicolons have nothing to do with anything. You cannot use the above code in an exploration because of the Input() function, so replace the line: Code:
Periods:=Input("MACD Length",2,1000,252);
with eddie.m wrote:To create six separate Indicators that may be referenced to, create six new Indicators one by one following this rule: replace every MACDH in the formula above with MACD()-Mov(MACD(),9,E).
Example: {WINTER, red} If(MACD()-Mov(MACD(),252,E)*(MACD()-Mov(MACD(),252,E)<0 AND MACD()-Mov(MACD(),252,E))<Ref(MACD()-Mov(MACD(),252,E),-1),MACD()-Mov(MACD(),252,E),0)
Feel free to choose your own periods. The default one is: 9.
For Indian Summer and Cold Spell In Spring, replace both MACDH with its formula and the season names (smmer, autumn, winter, spring) with their respective formulas. Just use the FmlVar() to call the required variable value from the indicator; being cautious of the default value of the Input() function(s). wabbit [:D]
|