pending orders help.

 

I am using MT4 with my broker OANDA.

 

I am trying to setup a macro the will place pending orders for both buy and sell. My problem is that F9 brings up the trade window and then I can use tab to get to change the order type to pending however the numbers are all zeros. The only way I have found to get the price to the current price  is to use the small arrows beside the price. This will not work for my macro. Is there a setting I can use to make the price show the current price when I choose pending trade?

 

I am including a screen shot of the issue to help make it clear. 

 

 

 
snapped2002:

I am using MT4 with my broker OANDA.

 

I am trying to setup a macro the will place pending orders for both buy and sell. My problem is that F9 brings up the trade window and then I can use tab to get to change the order type to pending however the numbers are all zeros. The only way I have found to get the price to the current price  is to use the small arrows beside the price. This will not work for my macro. Is there a setting I can use to make the price show the current price when I choose pending trade?

Why not just write a script with a few lines you can drag to place your Pending order ?
 
RaptorUK:
Why not just write a script with a few lines you can drag to place your Pending order ?


I do not know how to write one. I tried to get a tutorial but I can not seem to grasp the syntax. So I am thinking maybe just use a product like keyboard express that allows me to automate keystrokes.
 
snapped2002:

I do not know how to write one. I tried to get a tutorial but I can not seem to grasp the syntax. So I am thinking maybe just use a product like keyboard express that allows me to automate keystrokes.
This Forum is about coding in MQL4 . . .
 
RaptorUK:
This Forum is about coding in MQL4 . . .


I understand that many code and believe me I envy them LARGE lol. Can you suggest what forum I should have posted in? 
 
snapped2002:

I understand that many code and believe me I envy them LARGE lol. Can you suggest what forum I should have posted in? 
You could try ForexFactory.
 
snapped2002: I do not know how to write one.
there are only two choices: learn to code or pay someone.
 
snapped2002:

I do not know how to write one. I tried to get a tutorial but I can not seem to grasp the syntax. So I am thinking maybe just use a product like keyboard express that allows me to automate keystrokes.
Search in the code base (https://www.mql5.com/en/code) especially script code base (https://www.mql5.com/en/code) like this two for example https://www.mql5.com/en/code/9667 and https://www.mql5.com/en/code/9666
 
Even if you write a code to make the zeros become the current price it wont open since pending orders cant be placed at current price but a distance above or below.
 
tonny:
Even if you write a code to make the zeros become the current price it wont open since pending orders cant be placed at current price but a distance above or below.
Pending Orders most certainly can be placed at current price with some Brokers . . .   where StopLevel and FreezeLevel are 0.0
 
If you want to place a pending order at market price then why not just send a market order?