Discussions
»
Product and Service Development
»
Formula Assistance
»
Please help with formula for Price Oscillator, I'm trying to make similar to MACD
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/21/2005(UTC) Posts: 33
|
I read that Gerald Appel had different settings for his MACD 12,26,9 for buy and I believe 8,17,5 for sell. Well after reading that I thought I'd would try to "optimize" these values using the enhanced system tester. I understand MACD can't be altered in metastock and one has to use the Price Oscillator. I was wondering if someone could please help me with setting up buy and sell formula using the price oscillator crossing it's signal line using OPT1, OPT2, and OPT3 for the 2 exponential moving averages and signal lines similar to MACD. thanks for anyone's help
good luck trading!
Biff
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 11/7/2005(UTC) Posts: 602
|
My system tester has a study called MACD w/ opt. so I am assuming you have it as well. Copy that one to a new study and play around with it. You should be able to get what you want from there.
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users Joined: 4/21/2005(UTC) Posts: 33
|
ah Yes, my friend, but the only optimization you can do is the number of periods in the signal line (the 9). I would like to test the 12,26 numbers. the price oscillator is similar but I'm too stupid to figure it out. Thanks
|
|
|
|
Rank: Advanced Member
Groups: Registered, Registered Users, Unverified Users Joined: 7/12/2007(UTC) Posts: 134 Location: Perth Western Australia
|
As per the MS manual the MACD is calculated as follows:-
Mov(C,12,E)-Mov(C,26,E); {Displayed as a histogram}
Mov(MACD(),9,E); {Signal Line}
Armed with this info create an new System Test as such:-
{Buy Order Formula}
MACD1:=Mov(C,OPT1,E)-Mov(C,OPT2,E);
MACD1signal:=Mov(MACD1,OPT3,E);
Cross( MACD1, MACD1signal);
{Sell Order Formula}
MACD2:=Mov(C,OPT4,E)-Mov(C,OPT5,E);
MACD2signal:=Mov(MACD2,OPT6,E);
Cross( MACD2signal,MACD2);
Whilst I have not run this thru the System Tester I think it should work okay.
|
|
|
|
Users browsing this topic |
Guest (Hidden)
|
Discussions
»
Product and Service Development
»
Formula Assistance
»
Please help with formula for Price Oscillator, I'm trying to make similar to MACD
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.