Coding help - page 467

 

Hi all ,

Can you help to check the code for pipstep and trailingStop?

I found that they're not working properly in the back test.

Thanks a lot.

 
iryincome:
Hi all ,

Can you help to check the code for pipstep and trailingStop?

I found that they're not working properly in the back test.

Thanks a lot.

Do you happen to have the original source code of it?

 
mladen:
Do you happen to have the original source code of it?

Hi,

I was only given this file after my payment.

So it's not the original source code file?

 
mladen:
blueface You already have them : posX and posY variables in the code

Hi mladen

I mean if can add posX and posY ,font sizeat "Inputs“I am not the coder,if you can help me add these to ”Inputs“.

thx a lot.

 

stanwell's request

I suggest you first do what I do:

Go through charts and mark ALL examples of conforming setups and non-conforming setups. Use the F12 key so you don't look ahead. When you have marked 100 of each, tabulate them to see which predicted the move better. Then let us know if it is worth coding. Right now I have serious doubts.

Or pay for the coding.

Big Be

 
Big Be:
I suggest you first do what I do:

Go through charts and mark ALL examples of conforming setups and non-conforming setups. Use the F12 key so you don't look ahead. When you have marked 100 of each, tabulate them to see which predicted the move better. Then let us know if it is worth coding. Right now I have serious doubts.

Or pay for the coding.

Big Be

Big Be,

I tried to PM you but not allowed this early stage. Please let me know how i can contact you.

Cheers,

Stan

 

How can I have only one email ?

Hello,

How can I have only one email by change and not one by tick :

#property indicator_chart_window

extern double MA_Period=PERIOD_H4;

extern double MA_Shift=5;

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

int start(){

static datetime Close_Time;

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

double Simple_MA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,0);

double Simple_vMA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,1);

double Simple_vvMA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,2);

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

if (Close_Time != Time[0])

{

if ((Simple_MA>Simple_vMA)&& (Simple_vMA<Simple_vvMA))

{

Alert(Symbol()," Retournement Hausse");

SendMail("Bar Closed ABOVE Simple_MA "+ Symbol()+" At: ", TimeCurrent());

// SendMail("SMA CrossUp"+Symbol()," ", "at"," ",Close_Time);

Close_Time=Time[0];

}

if ((Simple_MASimple_vvMA))

//if ((Close[0] Simple_MA))

{

Alert(Symbol()," Retournement Baisse");

SendMail("Bar Closed BELOW Simple_MA "+ Symbol()+" At: ",TimeCurrent());

Close_Time=Time[0];

}

}

}

Thanks in advance.

Jo

 
Jovager:
Hello,

How can I have only one email by change and not one by tick :

#property indicator_chart_window

extern double MA_Period=PERIOD_H4;

extern double MA_Shift=5;

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

int start(){

static datetime Close_Time;

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

double Simple_MA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,0);

double Simple_vMA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,1);

double Simple_vvMA=iMA(NULL,MA_Period,MA_Shift,0,MODE_SMA,PRICE_CLOSE,2);

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

if (Close_Time != Time[0])

{

if ((Simple_MA>Simple_vMA)&& (Simple_vMA<Simple_vvMA))

{

Alert(Symbol()," Retournement Hausse");

SendMail("Bar Closed ABOVE Simple_MA "+ Symbol()+" At: ", TimeCurrent());

// SendMail("SMA CrossUp"+Symbol()," ", "at"," ",Close_Time);

Close_Time=Time[0];

}

if ((Simple_MASimple_vvMA))

//if ((Close[0] Simple_MA))

{

Alert(Symbol()," Retournement Baisse");

SendMail("Bar Closed BELOW Simple_MA "+ Symbol()+" At: ",TimeCurrent());

Close_Time=Time[0];

}

}

}

Thanks in advance.

Jo

Jo

the if (Close_Time != Time[0]) line should prevent repeated alerts (if you do not change time frames or symbols in the mean time)

If you do (change time frame or symbol) than all the variables are reset and the indicator can not "know" that it already have alerted you on that bar

 

Any pdf or similar for new mql?

 
apprentice coder:
Any pdf or similar for new mql?

No, no such thing (for mql4)

Reason: