How to code? - page 103

 

PLease code EA for me

Hey freinds,

i have some request for those who able to code this ea

The system look like this..

let say for the pair GJ around gmt 8 show current price is 200.00

therefore i need a breakout instant show for

buy stop 200.50

sells stop 199.50

with SL 30 pip and TP 50pip

and the ea works automatically after it smile..hehe

only GMT 8.....

 

3_level_zz_semafor

hi dear friends

Could you please add an popup audio alert when the 3rd is made

best regards .

nirvana

Files:
 

Hi all..

can someone please help me how to combine several indicators become an EA??

Actully, i have indicators that are..

1. FX Sniper's MA

2. FX Sniper's LSMA

3. Slope Direction Line

4. Supertrend Audible Alert

5. Super_signals_v3

Sorry to say, i'm not good in programming

Here i attach the picture for BUY Condition

this for SELL Condition

Open BUY POST

When FX Sniper MA && FX Sniper LSMA && Supertrend Audible Alert = Green && Slope Direction Line = Blue.

Open SELL POST

When FX Sniper MA && FX Sniper LSMA && Supertrend Audible Alert && Slope Direction Line = Red.

Exit BUY/SELL POST

when super signal v3 appears.

hope someone can help me..

thanks

these are the indicators

1. FX Sniper's MA

FX Sniper MA.mq4

2. FX Sniper's LSMA

FX Sniper LSMA.mq4

3. Slope Direction Line

Slope Direction Line.mq4

4. Supertrend Audible Alert

Supertrend Audible Alert.mq4

5. Super_signals_v3

super_signals_v3.mq4

 

Just moved your post to this thread.

 

Hi all..

thanks newdigital for your advise..

 

Need an EA

Hai , need your help plz

any body can create a simple EA based on the features below:

- allow scalping

- Scalping value

- set TP

- Set SL

- can disable entry for sell & buy ( i prefer to enter manually )

- can be used in recommended on tf30 and tf H1

Basically here i want to use it for scalping, but prefer to enter manually,, what i want is, it will closed the position once it reach the amount that i been set in input.

Ive tried to use the misakas,, but it keep open the position that i dont to enter, coz it is too risky.. ( for me )

If anybody could help me with this. you Can PM me if u want. Thank you in advance.

 

Help : Scanner

Hi all,

who helps me?

I have a question: I have created this scanner that plays at the end of the formation doji, but it also plays the same alarm in the following candle.

Who tells me where it is wrong?

I would want that it played an only time at the end of the doji and enough, without repeating.

I thank who helps me.

Antonio (Italy)

#property indicator_separate_window

string ver="SCANNER DOJI ";

//---- input parameters

extern bool UseAlert = 1;//*****

// -----------DICHIARAZIONE VARIABILI GENERICHE--------------------------

double alertBar;//*****

bool alertdoji=False;

bool flgrs;

string nome_fin; //nome finestra

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

//| Custom indicator initialization function |

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

int init()

{

//----

nome_fin=StringConcatenate(" (",ver,")");

IndicatorShortName(nome_fin);//nome separate window

//----

return(0);

}

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

//| Custom indicator deinitialization function |

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

int deinit()

{

return(0);

}

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

//| Custom indicator iteration function |

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

int start()

{

int counted_bars=IndicatorCounted();

//###################################

// ----------------------------

if (

Close[1] == Open[1]&& //DOJI

flgrs==0)

{

alertdoji = 1;

flgrs=1;

}

else

{

flgrs=0;

}

//*****************ALERT****************

if (UseAlert==1 && Bars>alertBar && alertdoji==1)

{

Alert(Symbol(), " DOJI " );

alertBar=Bars;

alertdoji=0;

}

return(0);

}

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

 

MathCos

Hi,

I am currently coding up in indicator which uses the MathCos function in MQL.

The problem is that it seems to be returning an incorrect value.

For example,

MathCos(10);

returns a value of -0.8391, while the TradeStation COSINE function, and the web-based cosine calculator at Basic Maths Functions both return a value of 0.9848.

Is this a known bug? My indicator can't be written unless this function works correctly so I hope there is a solution!

Thanks

 

...

Metatrader takes arguments for trigonometric functions in radians

You should do something like this :

#define Pi 3.141592653589793238462643

MathCos(10.00*Pi/180.00);

[/php]

graemenash:
Hi,

I am currently coding up in indicator which uses the MathCos function in MQL.

The problem is that it seems to be returning an incorrect value.

For example, [php]MathCos(10);

returns a value of -0.8391, while the TradeStation COSINE function, and the web-based cosine calculator at Basic Maths Functions both return a value of 0.9848.

Is this a known bug? My indicator can't be written unless this function works correctly so I hope there is a solution!

Thanks
 

define a global variable pBars

int pBars = -1 ;

if(pBars != Bars) { // only once per bar

if (

Close[1] == Open[1]&& //DOJI

flgrs==0)

{

alertdoji = 1;

flgrs=1;

}

else

{

flgrs=0;

}

pBars = Bars ; // assign pBars

}// end if pBars

See if that helps.