Is there a way to speed up the script process?

 

Greetings,

Sometimes, when the price reaches to buy a limit order and the trend is pointing to the opposite direction,
I 'push' the trade's price further.

This method works fine except when the price moves fast.
In such cases, the script is too slow and the trade is acquired.

Is there a way to speed up the script process?

James

 
JJF:

Greetings,

Sometimes, when the price reaches to buy a limit order and the trend is pointing to the opposite direction,
I 'push' the trade's price further.

This method works fine except when the price moves fast.
In such cases, the script is too slow and the trade is acquired.

Is there a way to speed up the script process?

James

If I understand you correctly, you have a server-side limit order and you are running a script to move the limit order. In this case the problem is not with the script but with your broker's execution speed.
 
It takes time to modify an order. Get a faster broker. Or don't use a limit order, have the EA wait and open at the appropriate level.
 


Your words gave me an idea to use icons as marking place.
I think that it would be easier (and faster) to handle the markings.

Thanks guys,

James

Reason: