How to code? - page 277

 
Avasys:
Hello,

thanks for helping

Yes, so more precisely AUDUSD trade range (difference between high price and low price) between 02:00 GMT and 10:00 GMT times (this is very important in code) is less than 60 pips so this is tradable signal. So you sell if prices reaches low price (between 02:00 and 10:00) - 5 pips and you buy if prices reaches high price + 5 pips.

example

between 02:00 and 10:00 GBPUSD low price was 1.6000, high was 1.6050, so if prices reaches 1.5995 sell automatically and if price reaches 1.6055 buy automatically placing 30 pips stop loss order automatically and 50 pips take profit.

if you don't have time just give me indication how to begin, I read lesson but I don't have practice to do the work

thanks

[lang=pl]Ok, now i undestand. Im busy at the moment, but in the evening or tommorow morning i will give you EA

Cheers,

Grzesiek[/lang]

 
g.pociejewski:
[lang=pl]Ok, now i undestand. Im busy at the moment, but in the evening or tommorow morning i will give you EA

Cheers,

Grzesiek[/lang]

This is appreciated!

thank you

 

Help with this simple order EA

can nay programmer guru help me to create an EA like this

Let's say I manually open a trade with 1 lot

Now i want an EA which I can move the horizontal line for Stoploss at xxx pips,

Takeprofit half of the lot and trailing the other half of the lot to break even.

Thank you very much in advance for your help

 
g.pociejewski:
[lang=pl]Ok, now i undestand. Im busy at the moment, but in the evening or tommorow morning i will give you EA

Cheers,

Grzesiek[/lang]

My Polish brother were are you?

 
Avasys:
My Polish brother were are you?

[lang=pl]I'm here : ) Please wait to the evening. I've a lot of work.

Cheers,

Grzesiek[/lang]

 
freewayfx:
can nay programmer guru help me to create an EA like this

Let's say I manually open a trade with 1 lot

Now i want an EA which I can move the horizontal line for Stoploss at xxx pips,

Takeprofit half of the lot and trailing the other half of the lot to break even.

Thank you very much in advance for your help

[lang=pl]try this tool:)

please PM if you have questions.

Cheers,

Grzesiek[/lang]

 

Help on iTrend indicator modification please ..

Hi,

Any body can help me please. I need modification on iTrend indicator ( i Trend mq4 free download (mt4 indicator) ) . I want the changing background. If the value & value2 between : 0.002 & -0.002 , the background is Blue, else is Yellow. May be must using opacity so the chart is still can be seen. I send 2 attachment, the original one & needed one.

Thank you very much

-pedma-

Files:
 

Modify this ea please

can some one help to modify this EA

The problem i have is when i drop it on the chart

S/L and T/P is 3 pips. Even i change setting it still does not work. I want it preset S/L=42, T/P=50

if possible you can make horizontal lines move up/down correspond to stoploss value and Take profit value. I would be very much appreciated

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

//| TPSL-Insert.mq4 |

//| |

//| |

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

#property copyright ""

#property link ""

//---- input parameters

extern double TakeProfitPips=35;

extern double StopLossPips=100;

int Faktor, Digt, cnt;

double TPp, SLp;

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

//| expert initialization function |

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

int init(){}

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

//| expert deinitialization function |

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

int deinit(){}

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

//| expert start function |

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

int start()

{

if(Close[0]>10) {Faktor=1000; Digt=3;} else

if(Close[0]<10) {Faktor=100000; Digt=5;}

if(OrdersTotal()!=0)

{

for(cnt=0; cnt<OrdersTotal(); cnt++)

{

OrderSelect(cnt,SELECT_BY_POS);

//--------------Take Profit--------------------------------

if(OrderTakeProfit()==0 && TakeProfitPips !=0)

{

if(OrderType()==OP_BUY && OrderSymbol()==Symbol())

{TPp = OrderOpenPrice()+TakeProfitPips/Faktor;}

if(OrderType()==OP_SELL && OrderSymbol()==Symbol())

{TPp = OrderOpenPrice()-TakeProfitPips/Faktor;}

} else TPp = OrderTakeProfit();

//--------------Stop Loss--------------------------------

if(OrderStopLoss()==0 && StopLossPips !=0)

{

if(OrderType()==OP_BUY && OrderSymbol()==Symbol())

{SLp = OrderOpenPrice()-StopLossPips/Faktor;}

if(OrderType()==OP_SELL && OrderSymbol()==Symbol())

{SLp = OrderOpenPrice()+StopLossPips/Faktor;}

} else SLp = OrderStopLoss();

//---------------Modify Order--------------------------

if (OrderType()==OP_BUY || OrderType()==OP_SELL)

OrderModify(OrderTicket(),OrderOpenPrice(),SLp,TPp,0);

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

} // for cnt

}//if OrdersTotal

return(0);

}// Start()

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

 
Avasys:
My Polish brother were are you?

[lang=pl]On more question is your time i GMT or not? If it's no GMT i will made little change in this EA.

I've just made it please check it i PM me if every thing is ok.

Distance beetwen low and high stopLoss and TP i made as extern variabels.

Cheers Grzesiek.[/lang]

Files:
simple_ea.mq4  4 kb
 
g.pociejewski:
[lang=pl]On more question is your time i GMT or not? If it's no GMT i will made little change in this EA.

I've just made it please check it i PM me if every thing is ok.

Distance beetwen low and high stopLoss and TP i made as extern variabels.

Cheers Grzesiek.[/lang]

Thank you so much,

it is appreciated,

yes time must be GMT

also this is for AUDUSD pair or can be traded for all pairs? and can I modify like in this EA times are 02:00 and 10:00 if I modify by myself in code let's say 04:00 and 12:00 will it be OK, I see these times here:

extern string Begin="2:00";

extern string End="10:00";

and also what if I would like stop loss to be trailing stop loss at 30 pips? can I also make it by myself?

you are great friend