engulfing strategy

Created at 04 Nov 2015
CT

ctid205024

Joined 04.11.2015

Status

Open


Budget

200.00 USD


Payment Method

via  oDesk

Job Description

Project for Outsourcing

--------------

 

Strategy: 

 

buy on the break above (5 pips, make it a variable) if IsBullishEngulfing and IsInLowerPartOfBollingerBand. Then set the stop according to function SetStop, then keep moving the stop to the next candle's low according to function MoveStopToNextCandlesLow

sell on the break below  (5 pips, make it a variable) if IsBearishEngulfing and IsInUpperPartOfBollingerBand set the stop according to function SetStop, then keep moving the stop to the next candle's low according to function MoveStopToNextCandlesHigh

 

Please create descriptive variable names and functions (like MoveStopToNextCandlesHigh())

 

Create these functions: 

 

bullish engulfing     IsBullishEngulfing (also assign a custom colour for the candle so we can easily identify bullish engulfings. Do the same for bearish engulfings).

bearish engulfing     IsBearishEngulfing

if it's in the upper part of the Bollinger band (if 90% of the candle is between the middle and top BB)     IsInUpperPartOfBollingerBand

if it's in the lower part of the Bollinger band (if 90% of the candle is between the middle and bottom BB)     IsInLowerPartOfBollingerBand

move stop to next candle's low      MoveStopToNextCandlesLow(PipDistance)  so if we use this function(10), stop will be set 10 pips below the next candle's low

move stop to next candle's high     MoveStopToNextCandlesHigh(PipDistance)

move stop to break even      MoveStopToBreakEven(AfterNumberOfPips, PipsToAdd) so if function(40,5), we'll move stop to break even after it has moved 40 pips in our favour and add 5 pips. 

set stop     SetStop()

     when buying:

              Define  variables for possible locations for the stop.

                    StopDistancePips = 10 pips

                    StopEntryCandle = below the entry candle's low + 10 pips (StopDistancePips)

                    StopPreviousCandle = the low of the previous candle + 10 pips

                    Stop20ma = where the 20ma is in that candle

     

              place the stop 10 pips below the entry candle low.

              if the previous candle's low is within a 10 pip distance from the entry candle's low, then place the stop 10 pips below the previous candle low. 

              if the 20ma is within a 10pip distance of the entry candle's low or the previous candle's low, then place it below the 20ma. 

              Chose whatever stop is lower in case of buying. 

 

     when selling:      

          The opposite

 

code has to be on github with version control 

Comments
Log in to add a comment.
s.boozini.s's avatar
s.boozini.s · 8 years ago

Greetings.

Would like to develop a project for you

I know languages (C# - S#) - C++, MQL4 and MQL5, JavaScript + Java, I build WebsiteS + updating/supporting/outlook designing, 
plugins, Dll, integration with mt4, EA and indicators , trading panels and copy traders, 
cAlgo conversions and development, Jforex, Ninjatrader, Thinkorswim, Visual panels, design APP, 
Mobile apps, API connection/integration, Market Readers ...etc.
 
I also hack and decompile EA and Indicators as well as educating your robot with trading strategies and mathematical formulas + Algorithms.

Experienced IT developer and worked for Microsoft,afterwards moved on to Metaquotes and Google cooperation.

Please contact me , e-mail: s.boozini.s@gmail.com

With respect.

OD
od_team · 9 years ago

I can help you. Skype od_team

bachapk's avatar
bachapk · 9 years ago

Hi

Please contact at bachapk@gmail.com OR https://sites.google.com/site/youralgo/contact-us

CT
ctid205024 · 9 years ago

I'll provide the logic for a bullish engulfing