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
OK explanation how to do
if (ObjectType(TrendName)== OBJ_TREND)
you look if P1 P2 T1 T2 are same values as you find with objectget
if one of them is different you have to delete the horizontal lines of the indicator
and calculate the new distance between the lines
with 8 lines then there are 7 areas between high and low
now you have to create the new lines with the new distance
also in deinit you have to delete the objects of the indicator
try to do this yourself and we help you further
or place a job at Jobs and i can give it you there (with explanation) if you pay me for this $10
Here a testingversion so you can see how it has to be (according to me)
free to choose what name for trendline and free to choose how many lines between high and low trendline
OK explanation how to do
if (ObjectType(TrendName)== OBJ_TREND)
you look if P1 P2 T1 T2 are same values as you find with objectget
if one of them is different you have to delete the horizontal lines of the indicator
and calculate the new distance between the lines
with 8 lines then there are 7 areas between high and low
now you have to create the new lines with the new distance
also in deinit you have to delete the objects of the indicator
try to do this yourself and we help you further
or place a job at Jobs and i can give it you there if you pay me for this $10
I've mange to do it, Still have a problem in the refresh rate (the chart won't update automatically but only after I ctrl+i and than OK). I'll work on the refresh - Thank :-)
I've mange to do it, Still have a problem in the refresh rate (the chart won't update automatically but only after I ctrl+i and than OK). I'll work on the refresh - Thank :-)
Did you try WindowRedraw();
Did you try WindowRedraw();
no not needed this moment market is not open so if my program is not showing hlines then wait till markets open
no not needed this moment market is not open so if my program is not showing hlines then wait till markets open
I've made some changes in the code and now it can also draw Gann's angles and vertical lines.
I've tried it now but it doesn't work (I'm probably using it wrong or in the wrong place).It only updates after Ctrl+I .
What am I doing wrong ?
Thanks
your code...
what you wantes was you create a line on the chart between two points
this line we can make with objecttype trend and then we give it a name we also have as inputparameter of our indicator
begin of the line we find at price1 time1 and end of the line is price2 time2
change drawgannlines ==> DrawGannLines(P1,P2,T1,T2) then you can see your calculation horizontallines is still wrong 8 lines 7 levels above first line
Hi
You're right the HighBarsBack, LowBarsBack are not needed.
I did want the indicator to search automatically the swing high/low when I load it (and then fix it if I don't think it is the correct swings levels).
Anyway I've manage to do it - Thank You very much for your help.
The changes are in
this can't work this way ....
do you see why ?? there is also here no input needed to find p1,.....
i gave solution in latest post..
Well actually it did work but I've decided to remove the 4 lines (see below) - anyway it is working now - Thank you.