
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi RaptorUK can I ask if I wanted a horizontal line drawn at the highest price and the lowest price between the two time periods I tried code below as you guessed nothing happened I was expecting the lines to be drawn at the high and low not between the two times.
Can you please point in the direction of where I will find how to draw Hlines on the High & Low points on a chart I have tried PRICE_HIGH and MODE_HIGH can I also add the two time scales after or before the PRICE_HIGH and PRICE_LOW
would it be something like that then do I add val to ObjectCreate
You are sort of on the right track, but iHighest() and iLowest() take ints for the int count=WHOLE_ARRAY, int start=0 parameters. So you will need to convert the datetimes for midnight and 7 am to bar numbers using iBarShift() . Declare some variables to hold these values so your code is easy to read and understand. Something like this . . .
then use the values to create your horizontal lines . . . please don't use this code as is, I've not compiled or tested it, instead read it, understand it then do something similar of your own choosing.