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

How to get point A and B
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5188
Page 1 of 1
Author:  rogeriob28 [ Fri Jun 02, 2017 2:14 am ]
Post subject:  How to get point A and B

Hi All,

What is the best way to get Point A and B to use in an EA (Plot Fibo levels)?
I would use for timeframe M15
I would like to draw Fibo straight through the EA without using external indicator.

Thank you,
Rogério
Author:  SteveHopwood [ Fri Jun 02, 2017 10:55 am ]
Post subject:  How to get point A and B

I remember doing this a long time ago, so I thought I would see if I can do it any more easily now than I did back then. It turns out that I can.

The attached script will draw a fib at the top and bottom of the previous 30 days, at the 50 and 30. Hack into it and adapt it for your own use.

:xm:
Author:  rogeriob28 [ Fri Jun 02, 2017 11:53 am ]
Post subject:  How to get point A and B

Hi Steve,
Thanks for the script.
I saw 2 EA's your Simone and Steve Hopwood's Fib Target-level retracement auto-trader
In the code below would highest be point A and lowest would be Point B correct?

Code: Select all

 highest = iHigh( Symbol(), PERIOD_D1, iHighest( Symbol(), PERIOD_D1, MODE_HIGH, 30, 1 ) );
 lowest = iLow( Symbol(), PERIOD_D1, iLowest( Symbol(), PERIOD_D1, MODE_LOW, 30, 1 ) );
  double height = highest - lowest;
Do I calculate this way using D1 would work for M5 and M15?
Would not you miss some retracement points?

Is it possible to calculate point A and B with fractal?

Thank you,
Rogério
Author:  SteveHopwood [ Fri Jun 02, 2017 10:11 pm ]
Post subject:  How to get point A and B

I am not going to write your code for you Rogerio. I have given you stuff to get you started. It is up to you to make it work for yourself.

:xm:
All times are UTC Page 1 of 1