Rank: Newbie
Groups: Registered, Registered Users Joined: 3/8/2008(UTC) Posts: 1
|
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
I will play around with it. I alway like anything that is 90%. First Thought: The chart you posted is a MACD oscillator not just MACD which should send me in the correct direction. second Thought: You may want to ask Lind Waldock for the code. If it isn't their own they may actually give it to you. If they do, ask about uses, they may not want it posted on the net.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
Try researching MACD (DEMA) in MS which is what I think you are looking for. Let me know if I am wrong. See: http://trader.online.pl/...-MACD_DEMA_Smoothed.htmlMACD - DEMA Smoothed
shortperiods:=Input("Enter the shorter DEMAperiods: ",3,20,12);
longperiods:=Input("Enter the longer DEMAperiods: ",21,50,26);
signal:=Input("Enter the number of signalline periods: ",3,50,9);
Dema(C,shortperiods)-Dema(C,longperiods);
Mov(Dema(C,shortperiods)-Dema(C,longperiods),signal,E)and Formula: dema=2*ema(input)-ema(ema(input))
|
|
|
|
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)
|
Ty was looking to create a MACD-like indicator using simple moving averages instead of exponential moving averages. He figured out the solution... Code:
prd1:=12;
prd2:=26;
prd3:=9;
myMACD:=Mov(C,prd1,S)-Mov(C,prd2,S);
trigger:=Mov(myMACD,prd3,S);
{plot}
myMACD;
trigger;
or something along those lines... Hope this helps. wabbit [:D]
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.