Hello everybody,
Can somebody point me in the right direction with my problem?
I already have a Horizontal line on chart, and I will move it manually with drag and drop.
I need to find the starting price of the line (first price position). I tried all the properties that i could find.
OBJECT_PRICE and OBJECT_PRICE1 are equal to last position price.
Here is my code:
Any ideas?
at any time the horizontal line object only has a single price, so you will only ever get the current price.
Simply store the starting price from when you created the line or moved it before then you will have before and after
at any time the horizontal line object only has a single price, so you will only ever get the current price.
Simply store the starting price from when you created the line or moved it before then you will have before and after
Yellowstone could use the price as a string in the object description. Obviously this would have to be done when the object is created.
Then when the line is moved, get the object description, convert it back to a double and set the object description to the new price.
at any time the horizontal line object only has a single price, so you will only ever get the current price.
Simply store the starting price from when you created the line or moved it before then you will have before and after
thank you, for the clarification
I thought that I could develop this without additional variables
I will try your solution thank you
Yellowstone could use the price as a string in the object description. Obviously this would have to be done when the object is created.
Then when the line is moved, get the object description, convert it back to a double and set the object description to the new price.
this is a nice workaround, I like this, but I'll use a separate variable for achieving this functionality
thank you
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello everybody,
Can somebody point me in the right direction with my problem?
I already have a Horizontal line on chart, and I will move it manually with drag and drop.
I need to find the starting price of the line (first price position). I tried all the properties that i could find.
OBJECT_PRICE and OBJECT_PRICE1 are equal to last position price.
Here is my code:
Any ideas?