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
ObjectCreate("Line", OBJ_VLINE, 0, D'00:00:00', Unused);
ObjectCreate("Line1", OBJ_VLINE, 0, D'07:00:00', Unused1);
That creates the two lines where I want them when compiling gives me a warning date literal string incomplete if I put a date in then it only draws a line for that date
am I on the right tracks?
ObjectCreate("Line", OBJ_VLINE, 0, D'00:00:00', Unused);
ObjectCreate("Line1", OBJ_VLINE, 0, D'07:00:00', Unused1);
That creates the two lines where I want them when compiling gives me a warning date literal string incomplete if I put a date in then it only draws a line for that date
am I on the right tracks?
Thanks RaptorUK I will use yours should the + be a - as when I put a + I get 1700 and when I put a minus I get 0700
ObjectCreate("Line",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1 * 60)),Unused);
ObjectCreate("Line1",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1* 60)+(7*PERIOD_H1 * 60)),Unused1);
ObjectCreate("Line",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1 * 60)),Unused);
ObjectCreate("Line1",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1* 60)-(7*PERIOD_H1 * 60)),Unused1);
ObjectCreate("Line",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1 * 60)),Unused);
ObjectCreate("Line1",OBJ_VLINE,0,TimeCurrent() - (TimeCurrent()%(PERIOD_H1* 60)+(7*PERIOD_H1 * 60)),Unused1);
Please use the SRC button when posting code . . . your brackets are wrong. Instead of . .
do this . . .
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