| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
No, you cannot.
Every function has a specific number of parametres wich has no meaning to be changed. If you call a function with a number of params different from what the function assumes to receive, you get only this error at compil time: Invalid parameters count in function call. |
|
||||
|
Quote:
|
|
|||
|
Michel probably meant "which is not meant to be changed".
This is true of built-in functions (such as OrderSend()) as well as of custom functions. If you define: My_function(string name, int age) { Print("Hello. My name is ",name,", I am ",age," years old. How interesting."); } and you make the function call My_function("Jesus", 2000, Jerusalem), it will not work. Same thing with OrderModify or any other function. Of course you can modify custom functions. But you can't modify built-in functions. Quote:
|
|
||||
|
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) Last edited by Aaragorn; 07-17-2006 at 06:24 PM. |
|
|||
|
Quote:
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. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parameters of this indicator? | SloForeX | Indicators - Metatrader 4 | 1 | 11-16-2006 06:20 PM |
| How change parameters in EA ? | Jovager | Expert Advisors - Metatrader 4 | 2 | 10-29-2006 02:30 AM |
| Have parameters need a MT4 programmer | trevtrade | Suggestions for Trading Systems | 4 | 03-08-2006 02:10 PM |