Source: https://fxcodebase.com/code/viewtopic.php?f=31&t=19258
Forum: 31 · Topic 19258 · 5 post(s)
Apprentice · Sun May 27, 2012 8:30 am

You can define up to 12 actions, Buy/Sell/Close/Nothing for, Cross Over / Under of Top / Bottom / Central Line of Deflected MA Indicator
Highly adaptable Deflected MA Strategy.lua
Please install deflected MA, in order to use this strategy viewtopic.php?f=17&t=10339
The Strategy was revised and updated on December 10, 2018.
BERNYFINCH · Sun Jun 16, 2013 7:32 am
HI APPRENTICE,
THIS STRATEGY CAN BRING VERY NICE RESULTS BUT WE NEED TO ADD FOLLOWING THINGS: 1/ WE NEED TO HAVE ALSO HORIZONTAL SHIFT FOR THOSES 3 LINES 2/ WE NEED TO HAVE A CONFIRMATION BY DISTANCE BETWEEN 2 CHOOSEN LINES (IN PIPS) + NB OF BARS TO CONFIRM EXACTLY LIKE WE HAVE IN THE STRATEGY “MA Cross with the confirmation by the distance between lines”
THIS CONFIRMATION BY DISTANCE AVOID TO GO IN A FLAT MARKET WHICH MAKES LOSE MONEY. IT IS A KIND OF FILTER. I’D LIKE TO MORE AHEAD ANALYZING SIGNAL BY SUCH KIND OF STRATEGY , I THANK YOU IN ADVANCE IF YOU CAN DO THIS.
BEST REGARDS
Apprentice · Mon Jun 17, 2013 5:33 am
Your request is added to the developmental list.
BERNYFINCH · Thu Jun 20, 2013 1:43 pm
HI APPRENTICE
THANK YOU TO TAKE IN CHARGE THIS REQUEST. AS I UNDERSTAND YOU WILL ADD A PART OF ANOTHER STRATEGY (THIS PART FOR THE DISTANCE CONFIRMATION) , I ALLOW MYSELF TO GIVE AN INFORMATION ABOUT A STRANGE THING WHICH HAPPENED TODAY :
I WAS TESTING THIS STRATEGY “MA Cross with the confirmation by the distance between lines” FOR GOLD (XAU/USD) IN m1 TIME FRAME , WITH EMA 45 AND EMA 130; CONFIRMATION DISTANCE 80 AND 1 BAR; THE STRATEGY HAD TO TAKE A SHORT POSITION AT AROUD 8H00 SERVER TIME BUT NOTHING HAPPENED . HOWEVER AFTER THE CROSS BETWEEN LINES HAPPENED , IT TOOK 140 BARS (140 mn) TO GET THIS MINIMUM DISTANCE 80. I DON’T KNOW IF THIS CAN HELP YOU.
THANKS IN ADVANCE BEST REGARDS
Apprentice · Fri Dec 09, 2016 7:19 am
Strategy was revised and updated.