Rank: Advanced Member
Groups: Moderators, Registered, Registered Users, Subscribers Joined: 10/8/2010(UTC) Posts: 1,960
Thanks: 92 times Was thanked: 155 time(s) in 150 post(s)
|
Originally Posted by: corrado Originally Posted by: MS Support Originally Posted by: corrado Hi, I'm looking for a system to put in EXPERT ADVISOR or EXPLORER to identify divergence on MACD. I have seen in previous ideas on this forum that there are many discussions and listings but I can't manage to work or even understand the concepts expressed due to my limitations in programming and knowledge of the English language. Please would there be any members of this community who can post the listings? Thanks anyway!
Thanks for the kind suggestion. I inserted the listing you suggested in an EXPERT SYMBOL but it did not return any signals with obvious divergences. where am i wrong? For example, I am attaching a chart (SWN title with hourly bars, with divergence in October) with MACD divergence but that the formula does not report. Thanks and sorry for the inconvenience
Hi, Correl(((Sum(Cum(1)*(Mov(C,12,E)-Mov(C,26,E)),100))-(Sum(Cum(1),100)*
Sum((Mov(C,12,E)-Mov(C,26,E)),100)/100))/((Sum(Power(Cum(1),2),100))-
(Power(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-(Sum(Cum(1),100)*
Sum(C,100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),12,0)
Hi again and sorry about that. That formula would probably work best in Explorer as you can sort the results. For it to work as a symbol, you would probably want to compare the formula to a specific value. You could create a couple formulas for Expert Symbols, i.e. {Divergence} Code:Correl(((Sum(Cum(1)*(Mov(C,12,E)-Mov(C,26,E)),100))-(Sum(Cum(1),100)*
Sum((Mov(C,12,E)-Mov(C,26,E)),100)/100))/((Sum(Power(Cum(1),2),100))-
(Power(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-(Sum(Cum(1),100)*
Sum(C,100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),12,0) <= -.80
and {Correlation} Code:Correl(((Sum(Cum(1)*(Mov(C,12,E)-Mov(C,26,E)),100))-(Sum(Cum(1),100)*
Sum((Mov(C,12,E)-Mov(C,26,E)),100)/100))/((Sum(Power(Cum(1),2),100))-
(Power(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-(Sum(Cum(1),100)*
Sum(C,100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),12,0) >= .80
Edited by user Monday, November 9, 2020 3:35:31 PM(UTC)
| Reason: Not specified
|
1 user thanked MS Support for this useful post.
|
|