Requests & Ideas - page 544

 
mntiwana:

try now,i hope it will be work.

regards

It works fine :)

Thank you very much my friend :)


By the way, when i attached below indicator it says, "You are trying to use renamed indicator" !!

Where is the problem?

 
mrtools:
Nicole, added the arrows, they should work in conjunction with how you have the ColorChangeOn set to.
@mrtools:

danke danke danke

thank you
 
mrtools:
Nicole, added the arrows, they should work in conjunction with how you have the ColorChangeOn set to.
Mrtools, how can i change the size of the arrows? thank you!
 
oguz:

It works fine :)

Thank you very much my friend :)


By the way, when i attached below indicator it says, "You are trying to use renamed indicator" !!

Where is the problem?

Try using this one :
 
NicoleDeinhard:
Mrtools, how can i change the size of the arrows? thank you!

Nicole

Use this one (added the parameter for arrows sizes)

 
mladen:

Nicole

Use this one (added the parameter for arrows sizes)

ohhh thank you very much Mr. mladen :-)
 
mladen:
Try using this one :

It is work now :)

Thanks for your effort :)

 

Hi

I would use this code to lock profit level but the test error occurs modify order 130.
Does anyone have a similar example that works for lock level profit 10-100 pips?

See attached file.

Thank you

Rogério

Files:
 
borgesr:

Hi

I would use this code to lock profit level but the test error occurs modify order 130.
Does anyone have a similar example that works for lock level profit 10-100 pips?

See attached file.

Thank you

Rogério

Error 130 means that the price is wrong (either the take profit and/or stop loss it is too close to the current price or it is at the "wrong" side of the current price). Try using different tp and sl and check what happens
 
mladen:
Error 130 means that the price is wrong (either the take profit and/or stop loss it is too close to the current price or it is at the "wrong" side of the current price). Try using different tp and sl and check what happens

Dear Mladen,

I'm testing an EA with nonlagma_nrp_1_1 and I_XO_A_H.

The error only occurs when trying to use the Lock profit function.


Following full EA mq4 attached.

extern bool      UsarLockProfit= true;
bool             StealthMode  = false;
extern double       LockProfit1  = 1;
extern double       LockProfit2  = 2;
extern double       LockProfit3  = 3;
extern double       LockProfit4  = 4;
extern double       LockProfit5  = 5;
extern double       LockProfit6  = 6;
extern double       LockProfit7  = 7;
extern double       LockProfit8  = 8;
extern double       LockProfit9  = 10;
extern double       LockProfit10 = 20;

Exemplo lock profit

 if(OPtotal > 0)
  {
     double Pips_Buy            = Bid-OrderOpenPrice();
     double Pips_Sell           = OrderOpenPrice()-Ask;
     double Pips_Lock1          = LockProfit1 * myPoint;
     double Pips_Lock2          = LockProfit2 * myPoint;
     double Pips_Lock3          = LockProfit3 * myPoint;
     double Pips_Lock4          = LockProfit4 * myPoint;
     double Pips_Lock5          = LockProfit5 * myPoint;
     double Pips_Lock6          = LockProfit6 * myPoint;
     double Pips_Lock7          = LockProfit7 * myPoint;
     double Pips_Lock8          = LockProfit8 * myPoint;
     double Pips_Lock9          = LockProfit9 * myPoint;
     double Pips_Lock10         = LockProfit10 * myPoint;
 
     
     if(OPBuy > 0 && OPSell == 0)
       {
        if (Pips_Buy > Pips_Lock1 && Pips_Buy < Pips_Lock2)
        {   if(StealthMode==false){ dummyResult=OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+Pips_Lock1,OrderTakeProfit(),0,CLR_NONE); }
            if(StealthMode==true)
              { if (Close[1]<Close[2] && Pips_Buy >= Pips_Lock1 && Pips_Buy < Pips_Lock2) { close_all(); }
              }
        }
        if (Pips_Buy > Pips_Lock2 && Pips_Buy < Pips_Lock3)
        {   if(StealthMode==false){ dummyResult=OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice()+Pips_Lock2,OrderTakeProfit(),0,CLR_NONE); }
            if(StealthMode==true)
              { if (Close[1]<Close[2] && Pips_Buy >= Pips_Lock2 && Pips_Buy < Pips_Lock3) { close_all(); }
              }
        }
Files:
Nonlagma.zip  9 kb
Reason: