Place pending order at mouse click on chart
-
Good day
I could not find any posts related to this if it has been answered already please share link to that post.
I would like to create Buy and Sell pending buttons, that when you click one of these buttons it loads your mouse cursor with a horizontal line, then on click it places a pending order at this price level (while your cursor is on the chart)
-
AFAIK that is not possible in fxDreema without custom code. I mean all is possible except for the part where the mouse moves a line. You will need custom code for that for sure.
-
Thought as much, that I would need custom code for this any ideas on where to look?
-
You will need a programmer for that custom code. I'm not a programmer, sadly. But many other user here are. You can try with jstap and roar.
-
Thanks I will reach out to them see if they may be able to help
-
Why don't you have lines on your chart, drag them to where you want them, and then press a button to open the pending order? You can easily create a button that will place/delete a line when you want it to.
-
Hi Jstap
So I done this with a buy and sell line and works but the line is very hard to select and move. (maybe there is a property setting im missing that makes this easier, I have tried making the width of the line thicker but this hasn't helped )
The other issue with this is when ive placed an pending order at a line and try to move the line again it more often selects the pending and I end up moving the pending vs moving the line. However I have not thought of creating a button to place/delete a line so think this may help
Still the issue I'm finding here is that the line is difficult to click and drag.
-
Draw them selected, or you have to double click. make the button delete/create the line somewhere that (likely) wont be where your trade is.
-
@jstap I forgot to respond here Thank you.
Managed to get this working as per your suggestion. Things have changed since then but learnt to make things better overall thanks to you
-
-
@l-andorrà said in Place pending order at mouse click on chart:
AFAIK
Would you mind sharing the code? I am trying to do something similar where I hold down a keyboard key then click wherever I want pending orders to be but can't get it to work.
-
@FreedomFlyer I dont mind I'll share something soon
-
Cool Thanks
-
@FreedomFlyer This is what I have done, I could not get the mouse click on chart working as I initially wanted the method @jstap suggested works better.
By drawing lines moving them and then placing pending orders where they are. In the link im sharing, though I'm not using this method.
What im doing here is.
on Int
- Drawing 2 edit fields -> 1 for buy line and 1 for sell line
- Drawing 2 buttons -> 1 to place my lines based on those edit fields and 1 to place pending once ive confirmed that those lines are in the places I want
on Chart
- Ive just configured those interactions
