Coding help - page 308

 

It's your Indi? Z-WINNER_CCI~.mq4

Can you give me a not decompiled code?

Thanks

 
BadWay:
It's your Indi? Z-WINNER_CCI~.mq4

Can you give me a not decompiled code?

Thanks

BadWay

See this post : https://www.forex-tsd.com/forum/debates-discussions/116-something-interesting-please-post-here/page340#comment_712522

 

i hope I've downloaded this right. (This is my first time) But what I need, is this indi gives it's signal after 3 bars have passed, or I should say, it gives it's alert on the open of the third bar. Then you see it, but it's 3 bars back. Is there any way you can modify this indi to alert on the next bar, instead of the third one? Thanks.scalpersignal_v1.01_alerts.mq4

 
Genesisman:
i hope I've downloaded this right. (This is my first time) But what I need, is this indi gives it's signal after 3 bars have passed, or I should say, it gives it's alert on the open of the third bar. Then you see it, but it's 3 bars back. Is there any way you can modify this indi to alert on the next bar, instead of the third one? Thanks.scalpersignal_v1.01_alerts.mq4

Genesisman

The way it was written it can not be changed - it would be something else then

 

Can someone please tell me if what I want is possible.

On a H1 chart I am using 1 x Hull MA40 with 1 x MA MTF 240 and 1 x MA MTF 1440.

Can the Hull be made to alert only when the 3 MA's are moving in the same direction?

Cheers, Steve.

 
hullsy:
Can someone please tell me if what I want is possible.

On a H1 chart I am using 1 x Hull MA40 with 1 x MA MTF 240 and 1 x MA MTF 1440.

Can the Hull be made to alert only when the 3 MA's are moving in the same direction?

Cheers, Steve.

I think this one does that : https://www.mql5.com/en/forum/174961/page14

 

Thanks airquest, but they are just multiple moving averages. I need the 2nd & 3rd to be MTF so effectively I have h1, h4 & d1 on the same chart.

 

Hello All,

Always on my baskets expert. I have a problem, like you see in the screenshot my profits are killed by swap.

And i write this :

// GET TOTAL PROFIT

double getTotalProfits()

{

int total = OrdersTotal();

double profits = 0.0;

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

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

{

profits += (OrderProfit()+OrderSwap()+OrderCommission());

}

}

return(profits);

}

bool profitTargetReached()

{

if (getTotalProfits() >= ((AccountBalance() * (PercentTakeProfit / 100.0))))

{

return(true);

}

return(false);

}

Guys tell me what i could, because this fucking expert .... i put the +orderswap() but nothing.

Thanks for any inputs !

Files:
 

Hey, I also Need coding help.

I want to put a delay between 2 alerts "down" and "downdel" of 1-5s. It is inside an if condition.

How can I do it best?

if(dClose < dLastClose) {

// down

if (!bTestMode){

Alert ("down");

...

x Seconnds DELAY HERE

...

Alert ("downdel");

rest of IF condition;

}

 
Big Joe:
Hello All,

Always on my baskets expert. I have a problem, like you see in the screenshot my profits are killed by swap.

And i write this :

// GET TOTAL PROFIT

double getTotalProfits()

{

int total = OrdersTotal();

double profits = 0.0;

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

{

OrderSelect(cnt,SELECT_BY_POS,MODE_TRADES);

if (OrderMagicNumber() == MagicNumber)

{

profits += (OrderProfit()+OrderSwap()+OrderCommission());

}

}

return(profits);

}

bool profitTargetReached()

{

if (getTotalProfits() >= ((AccountBalance() * (PercentTakeProfit / 100.0))))

{

return(true);

}

return(false);

}

Guys tell me what i could, because this fucking expert .... i put the +orderswap() but nothing.

Thanks for any inputs !

The code is correct

Are the magic numbers for all symbols always the same?