Please fix this indicator or EA - page 122

 

Hi mladen,

few days ago, I just try to use my EA to new build MT4 but it is not working... Then I try to compile it first just to check what has happened to my EA.. And it appear below :

.................................................................

return value of 'orderselect' should be checked

return value of 'orderclose' should be checked

return value of 'ordermodify' should be checked

return value of 'ordersend' should be checked

..............................................................

zero error but many warnings...

I really don't know what to to and what is that words means... please help...

 
fxgroup:
Hi mladen,

few days ago, I just try to use my EA to new build MT4 but it is not working... Then I try to compile it first just to check what has happened to my EA.. And it appear below :

.................................................................

return value of 'orderselect' should be checked

return value of 'orderclose' should be checked

return value of 'ordermodify' should be checked

return value of 'ordersend' should be checked

..............................................................

zero error but many warnings...

I really don't know what to to and what is that words means... please help...

fxgroup

Do the following :

Create a global variable called dummyResult like this

bool dummyResult;

and place the following in from of each such function that requires a check :

dummyResult = .....

that will reduce your warnings a lot

Or, if you can, post the EA here so that all those warning get removed

 

Thank you so much mladen for the help...

I will try to do that first... Tq

 
mladen:
fxgroup

Do the following :

Create a global variable called dummyResult like this

bool dummyResult;

and place the following in from of each such function that requires a check :

dummyResult = .....

that will reduce your warnings a lot

Or, if you can, post the EA here so that all those warning get removed

Hi mladen,

i did all you asked me to do and thanks cos' all the warning is gone... but my EA still did not work ( did not open position ) even i did a simple script like : ( FXG_MBUY == true ) to the condition.. means when i change in extension bool from false to true, it should open position... please help again... tq

 

|| ( OrdersOpened < 1 ))

{

bprice = Ask;

openprice = 0;

if (TakeProfit == 0.0 )

{takeprofit = 0;} else {takeprofit = bprice + (TakeProfit*(PreviousOrders+1) * Point) ;}

if (InitialStop == 0.0)

{stoploss = 0;} else {stoploss = bprice - (InitialStop*(PreviousOrders+1) * Point) ;}

if (OrdersOpened != 0)

{

lots = lotsi;

for (cnt = 1; cnt <= OrdersOpened; cnt++)

{

if (MaxTrades > 1 )

{ lots=NormalizeDouble(lots*Multiple_Lot,2); }

else { lots=NormalizeDouble(lots*Multiple_Lot,2); }

}

}

else

{

lots = lotsi;

}

if (lots > MaxLot ) lots = MaxLot;

dummyResult = OrderSend(Symbol(),OP_BUY,lots,bprice,slippage,stoploss,takeprofit,Comments,MagicNumber ,0,Blue ) ;

return(0);

}

}

return(0);

}

 

Hi Mladen and all coders

I don't know why this indicator dont show in my MT4. I dont see it in my list of custom indicators of the left side. I dont have to much indicators because i have only this one.

Can you help my?

I try another version of this indi but all the same story...

bb_alert_arrows.ex4

Files:
 
prykala:
Hi Mladen and all coders

I don't know why this indicator dont show in my MT4. I dont see it in my list of custom indicators of the left side. I dont have to much indicators because i have only this one.

Can you help my?

I try another version of this indi but all the same story...

bb_alert_arrows.ex4

prykala

Did you copy it to correct folder? I tested it on my terminal and all seems to be working OK

 
prykala:
Hi Mladen and all coders

I don't know why this indicator dont show in my MT4. I dont see it in my list of custom indicators of the left side. I dont have to much indicators because i have only this one.

Can you help my?

I try another version of this indi but all the same story...

bb_alert_arrows.ex4

It works for me too

 
mladen:
prykala Did you copy it to correct folder? I tested it on my terminal and all seems to be working OK

Ohh now i see what is the problem. I copy to corect folder but my mt4 dont refresh list of custom indicators... i delete all custom indicators from folder and restart mt4 and all of them are still on my list "custom indicators" and i can use it. I dont know what are wrong When i delete or put there new indi i cant see any change in my list in mt4.

Ok its time to reinstal my terminal...

Thank for your help and answers guys. Have a good day.

 

OK, I understand that you can not ex4, but the auto-Profit 3.0 I wrote a fix lot and indicator.

Reason: