Hi Apprentice.
I have written this simple indicator that will probably be useful to somebody else. It simply marks a position on the chart where you would like to enter a trade and place your stop loss. To place your entry and stop loss you use the right click menu.
The positions are stored in a database so they are displayed across all time frames for the pair.
It currently draws the lines from within the update function so it only updates at the next tick. The problem with that is that there is sometimes a lag waiting for the next tick and you can't plan trades out of trading hours because there are no ticks coming in.
If I understand the documentation correctly it should update instantly if I draw from within the draw function. I can't seem to get this to work and am struggling to debug because there is no right click available in the SDK.
Can you please help or give me an example of how to do this?