Quote:
|
Originally Posted by Aaragorn
so I'm not stuck with the built in functions I can make a custom function that does everything the built in one does + one more parameter? That should be easy enough.
Initial order with...
int OrderSend1( string symbol, int cmd, double volume, double price, int slippage, double stoploss, double takeprofit, string comment=NULL, int magic=0, datetime expiration=0, color arrow_color=CLR_NONE, bool control=False)
when function executes...
bool OrderModify1( int ticket, double price, double stoploss, double takeprofit, datetime expiration, color arrow_color=CLR_NONE, bool control=True)
|
Aaragorn it's like this .. For MT4 to recognize a command and initiate something it needs to understand the command send to it if you do create above function as ORDERSEND1(..... with your own parameters ) it will work for you but MT4 will not understand it and it will not open any order for you simply because there is no OrderSend() function which takes extra parameter what you can do is like
create a function as
say---
void ControlOrders( bool control )
{
// Here you can check your control variable if every thing is right then
normal OrderSend() function.
}
maybe this is what you are looking for
regards
EACAN.