stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

SuperSlope Flying Buddha
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5098
Page 5 of 10
Author:  SteveHopwood [ Sat Mar 11, 2017 10:38 am ]
Post subject:  SuperSlope Flying Buddha

Radar » Sat Mar 11, 2017 1:47 am wrote:
I just had a squizz inside Steve's Peak HiLo indicator, to see if I could get it to zoom back in a bit after it has drawn its lines, (the way it zooms right out does my head in), but I got totally lost in there :(
The only thing that I could work out is that I couldn't work any of it out ;)
Some indies are really simple to modify... PHL ain't one of 'em ;)

Have fun!
Radar =8^)
It is all to do with what mql4 calls the chart scale. Go to the snippet starting at line 112. The chart scale is from 0 to 5, with 0 being zoomed out as far as possible and 5 being zoomed in as far as possible.

Line 112 reads the current chart scale by calling the int ChartScaleGet(const long chart_ID=0) function I copied from the mql4 documentation.

Line 115 zooms out the chart by setting its scale to 0, with a call to the bool ChartScaleSet(const long value,const long chart_ID=0) function I copied from the mql4 documentation.

The rest of the code in the snippet changes to a different time frame and back again as the chart did not seem to display correctly without this. This may be unnecessary. I did not understand the code when I wrote the indi, and still don't. It ain't bust, so I have resisted the temptation to fix it. :lol:

If you want to zoom back in again after the indi has drawn its lines, go to line 652 and insert the same code snippet with ChartScaleSet(a zoom factor up to 5) to the zoom factor you want. Suppose you want it set to 3. Your snippet would be:

Code: Select all

int scale = ChartScaleGet();
   if (scale != 3)
   {
      ChartScaleSet(3);
      //A quick time frame change to force accurate display
      per = ChartPeriod(0);
      int nextPer = GetNextPeriod(per);
      ChartSetSymbolPeriod(0, Symbol(), nextPer);//Change time frame
      ChartSetSymbolPeriod(0, Symbol(), per);//reset time frame      
   }//if (scale != 3)
     
I have not tested this, but it gives you the rationale and something to play with.

:xm:
Author:  TraderJoeForex [ Fri Mar 17, 2017 9:08 am ]
Post subject:  SuperSlope Flying Buddha

TraderJoeForex » Thu Mar 09, 2017 11:10 am wrote:I am thinking the logical next step in filtering entries further will come from utilising Steve's peak high-low indicator here.

Looking at this H1 chart of EURGBP as an example:

The peak high low on the current chart provides the overall direction to look for trades
The D1 CSS stops us from taking entries too soon once a new peak high or low has formed
The Flying Buddhas help average into a decent entry and find appropriate exit.

I will start posting some trade examples on this in the coming week...
Ok here we go: EURGBP short setup:

H1 Peak High more recent than Peak Low
Daily SuperSlope red
Short Flying Buddha on H1

:jump:
Author:  TraderJoeForex [ Fri Mar 17, 2017 11:50 am ]
Post subject:  SuperSlope Flying Buddha

... and the same setup on EURCAD:
Author:  TraderJoeForex [ Fri Mar 17, 2017 3:26 pm ]
Post subject:  SuperSlope Flying Buddha

Here's one on GBPJPY not going my way. I will wait until SuperSlope turns back blue before adding any more positions..
Author:  TraderJoeForex [ Sat Mar 18, 2017 12:11 am ]
Post subject:  SuperSlope Flying Buddha

Finished the day with 100pips from 6 trades...
Author:  SteveHopwood [ Sat Mar 18, 2017 12:47 am ]
Post subject:  SuperSlope Flying Buddha

TraderJoeForex » Sat Mar 18, 2017 12:11 am wrote:Finished the day with 100pips from 6 trades...
:clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:
Author:  TraderJoeForex [ Tue Mar 21, 2017 3:12 pm ]
Post subject:  SuperSlope Flying Buddha

Not a bad start to this week. Just closed all and will look for some fresh opportunities from start of Asian to follow through to the end of the week.
Author:  TraderJoeForex [ Fri Mar 24, 2017 10:13 pm ]
Post subject:  SuperSlope Flying Buddha

Last two days GBPJPY was the only highlight here and closed all now for the weekend :smile:
Author:  TraderJoeForex [ Wed Mar 29, 2017 10:22 am ]
Post subject:  SuperSlope Flying Buddha

a few more trades taken this week so far....
Author:  TraderJoeForex [ Thu Mar 30, 2017 10:36 pm ]
Post subject:  SuperSlope Flying Buddha

CADJPY today..
All times are UTC Page 5 of 10