MACD strategy with SAR filtering

Strategies are published here.

Moderator: admin

MACD strategy with SAR filtering

Postby Alexander.Gettinger » Wed May 11, 2011 9:45 pm

This strategy is a classical MACD strategy with SAR filtering.
For BUY SAR must have a DN dots and for SELL SAR must have a UP dots.

Download:
MACD Sample_with_SAR.lua
(12.66 KiB) Downloaded 1486 times


2018-11-19_11-57-16.png
2018-11-19_11-57-31.png


The Strategy was revised and updated on November 19, 2018.
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Re: MACD strategy with SAR filtering

Postby dljohn » Fri May 13, 2011 10:12 am

Dear Alexander.Gettinger,
Thank you for your help!

After many tests, found the "MACD WITH SAR STRATEGY" to price results not very rational. As you know the MACD SAMPLE STRATEGY has certain to price analysis functions, I think it is perhaps for this reason interference on SAR normal exertion,cause of the trend is not very sensitive.

I think this "MA_MACD STRATEGY" is better than "MACD SAMPLE STRATEGY".
I edited the "SAR MACD STRATEGY TEST" based on the "MA_MACD STRATEGY", the purpose is to write with SAR instead of MA.
Because this is my first time to writed by LUA, this strategy have problems, doesn't work.
Would you pls help me to find out the problems. I would appreciate.
By the way, I hope SAR is preferred.
Thanks again.
Attachments
SAR_MACD_Strategy test.lua
(14.48 KiB) Downloaded 1208 times
MA_MACD_Strategy.lua
(18.78 KiB) Downloaded 1199 times
dljohn
 
Posts: 3
Joined: Mon May 02, 2011 3:32 am



Return to Custom Strategies

Who is online

Users browsing this forum: No registered users and 14 guests