How to code this one

 

Is here any command to open a position after each tick ?


thx V

 
The ordersend() command without any algorithm before/after or limiting it should accomplish that.
 

you mean like this ?


ticket=OrderSend(Symbol(),OP_BUY);


can you pls checj it ?


Thx a lot V

Files:
 

Like this: Your version would not even compile. I recommend reading the book and cover these: Then give it another shot :)

Basics of MQL4
Some Basic Concepts
Constants and Variables
Data Types
Operations and Expressions
Operators
Functions
Program Types 

int start(){
//#################################################################
//#################################################################
OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,
"My order #2",16384,0,Green);
//#################################################################
//#################################################################
/* Note: These are what the items between commas stand for.........
int OrderSend( 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);
*/
//#################################################################
//#################################################################
return(0);}
 
ubzen:

Like this: Your version would not even compile. I recommend reading the book and cover these: Then give it another shot :)

Basics of MQL4
Some Basic Concepts
Constants and Variables
Data Types
Operations and Expressions
Operators
Functions
Program Types


thx a lot,...V
Reason: