10points 3.mq4 - page 299

 

Just check the BUY ONLY box

bijak_sinner:
can anyone write an ea like multi lot sacpler that only make buy position? and another ea like that just for sell position?

The options field when you place your EA on the chart you click on the smiley face or options box and there you have an option you can put buy/sell or just buy or just sell. Simple

Berdj

 
berdj:
The options field when you place your EA on the chart you click on the smiley face or options box and there you have an option you can put buy/sell or just buy or just sell. Simple Berdj

thanx berdj

 

http://slayer.nazg.net/data/forex/mql/_MT_Misc/

I downloaded from above but can't attach it to MT4 chart

 

FxS Forex - Scripts - Home

@nicolebobbin : download it here !

 

Need help about EA code.

Hi everyone,

I am new in forex and need help about to code an EA. The condition is simple ( but I dont know how to code as I am not a programmer ).

Condition is :

1. BUY position when indicator condition exist. ie: stochastic

2. CLOSE position BUY when indicator for SELL position exist. ie:stochastic

3. SELL position when indicator condition exist. ie : stochastic

4. CLOSE position SELL when the BUY condition exist. ie : stochastic

Hopefully could be modified from : 10 points 3.mq4 EA .......

Anyone please help.

Thank you.

fxgroup..

 

FXA0-Ladder uses this strategy except with RSI instead of stochastic

 

Need help to modify EA

neta1o:
FXA0-Ladder uses this strategy except with RSI instead of stochastic

Thanks neta1o,

But where should I get the one EA you said ? ( FXA0-Ladder ) Any link to get there ?

Thank you.

 

FXAO-Ladder

fxgroup:
Thanks neta1o,

But where should I get the one EA you said ? ( FXA0-Ladder ) Any link to get there ?

Thank you.

fxggroup,

I used the search function for this thread and many references to FXAO-Ladder were presented perhaps the oldest would have the EA posted.

https://www.mql5.com/go?link=https://www.forex-tsd.src/search

John

 

Thanks you John @ yeoeleven,

yeoeleven:
fxggroup,

I used the search function for this thread and many references to FXAO-Ladder were presented perhaps the oldest would have the EA posted.

https://www.mql5.com/go?link=https://www.forex-tsd.src/search

John

Hi John@yeoeleven,

Thank you so much. Actually, what I am looking is anyone who could modify part of code from 10 points 3 which to suit to this below condition and I was suggested by neta1o that what I am looking for is same as FXAO-Ladder but I think a little different. May be, you could help me by either ADD or DEDUCT code from 10 points 3 according this condition.

Condition is :

1. BUY position when indicator condition exist. ie: stochastic

2. CLOSE position BUY when indicator for SELL position exist. ie:stochastic

3. SELL position when indicator condition exist. ie : stochastic

4. CLOSE position SELL when the BUY condition exist. ie : stochastic

I think to open position is okay but the CLOSE POSITION didnt work.

The code as I did is :

---------------- part of script as I think for close position -------

// it is important to enter the market correctly,

// but it is more important to exit it correctly...

for(cnt=0;cnt<total;cnt++)

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

if(OrderType()<=OP_SELL && // check for opened position

OrderType()<=OP_BUY &&

OrderType()>=OP_SELL &&

OrderType()>=OP_BUY &&

OrderSymbol()==Symbol()) // check for symbol

{

//+--------------------------------------------------------------

if(OrderType()==OP_BUY) // long position is opened

{

//+-------------------------------------------------------------------

//+ CONDITION FOR CLOSE POSITION

//+-------------------------------------------------------------------

//+--------------- CLOSE BUY POSITION ----------------------------

if ( Stoch_Main_M15_Cu < Stoch_Sig_M15_Cu )

//+------------------------------------------------------------------

{

OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet); // close position

return(0); // exit

}

//+-----------------------------------------------------------------------

// check for trailing stop

if(TrailingStop>0)

{

if(Bid-OrderOpenPrice()>Point*TrailingStop)

{

if(OrderStopLoss()<Bid-Point*TrailingStop)

{

OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),0,Green);

return(0);

}

}

}

}

//+---------------CLOSE SELL POSITION --------------------------------

else // go to short position

{ //+ DO NOT REMOVE

if(OrderType()==OP_SELL) // short position is opened

{

}

// should it be closed?

//+----------------------------------------------------------------------------

if ( Stoch_Main_M15_Cu > Stoch_Sig_M15_Cu )

//+-----------------------------------------------------------------------------

{

OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet); // close position

return(0); // exit

}

//+----------------------------------------

// check for trailing stop

if(TrailingStop>0)

{

if((OrderOpenPrice()-Ask)>(Point*TrailingStop))

{

if((OrderStopLoss()>(Ask+Point*TrailingStop)) || (OrderStopLoss()==0))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,OrderTakeProfit(),0,Red);

return(0);

}

}

}

}

}

}

-------------------------------------------------------------

Thank you.

fxgroup..

 

This thread is not dead yet..