Ask! - page 84

 

Hi codegurus,

How do i make a simple indicator that give alert when an ema reached a certain price level.

Please guide me.

 

Friday/Sunday Fix

Can anyone change this indicator to close on Sunday instead of Friday? I'm sure there is a simple fix for an experienced programmer, but I am just focused on trading.

I tried looking at it, but can't seem to figure it out. I am sure that it will help many traders. After the fix, please upload the .MQ4 file and not the .EX4 file.

Thanks!

Files:
 

ihighest

double CON1= High*Point;

double CON2= Low*Point;

double CONBREAKPOINT = 10;

double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?

I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.

 

This indicator shows the Symbol, Profit, and the Breakeven point. Is there any way to add the pip total to this ?

Files:
 

(need help) how to make multi time frame signal EA

please help

i have signal from TF 4H

(may be from philip nell or other 4h signal)

then i wan to make

entry point by the signal come from

smaller TF (1-5 minutes)

i just need any reference

EA

that ever built

no matter if even very oldest EA

that ever made

any one can help me ? please ? :-o

 
ajk:
double CON1= High*Point;

double CON2= Low*Point;

double CONBREAKPOINT = 10;

double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?

I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.

The High[m] and Low[n] values already are "*Point", because they are the actual prices. You might have meant "/Point" in order to get the number of pips they represent.

 
ajk:
double CON1= High*Point;

double CON2= Low*Point;

double CONBREAKPOINT = 10;

double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?

I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.

I think all you need to do is this:

Highest=iHighest(NULL,0,MODE_HIGH,20,0);

Gives you the highest high of last 20 bars

Highest=iHighest(NULL,0,MODE_HIGH,50,0);

This is the highest high of the last 50 bars

I hope this works for you.

 
ajk:
double CON1= High*Point;

double CON2= Low*Point;

double CONBREAKPOINT = 10;

double BREAKFINAL = (CON1 - CON2) ;

I am developing a simple price filter and can't make this work. Can anyone tell me how to determine the highest price of the last x n number of bars?

I would like to take the pricehigh - price low and compare in pips

Any help would be appreciated.

double HighPrice = iHigh(NULL,15,iHighest(NULL,15,MODE_HIGH,n,0));

double LowPrice = iLow(NULL,15,iLowest(NULL,15,MODE_LOw,n,0));

double Delta = (HighPrice - LowPrice) / Point;

 

Help - InitialStop code - for Brainwashing EA

Hi,

I'm using the "Brainwashing #1c_2" Expert on Daily time frame, the initialstop is generate by the "PriceChannel_Stop_V1" , and sometime..it's to big . Is it possible add a Max Value, like 50pip.

And, is it possible to add a "BreakEven" to this Expert

Here is the part of the code

extern int SLIPPAGE = 3;

extern double Lots = 0.1;

extern int StopLoss = 10;

extern int TakeProfit = 80; [/PHP]

And

if (Sell==-1 && Sell1>-1 && !buysig) { buysig=true; sellsig=false; sigtime=Time[lookupidx]; sigsl=Sell1; }

if (Buy==-1 && Buy1>-1 && !sellsig) { sellsig=true; buysig=false; sigtime=Time[lookupidx]; sigsl=Buy1; }

if (!ExistPosition() && ttime!=Time[0]) {

sigbar=(Time[0]-sigtime)/60/Period(); //the bar with signal

if (buysig

&& ((sigbarsigsl && ItrendFilter && iTredn1>ItrendLevel) ||!ItrendFilter) //iTrend filter

) {

if (StopLoss!=0) ldStop=sigsl-StopLoss*Point;

if (TakeProfit!=0) ldTake=Ask+TakeProfit*Point;

SetOrder(OP_BUY, Ask, ldStop, ldTake);

buysig=false;

ttime=Time[0];

}

if (sellsig

&& ((sigbar<=BarsToConfirm && AskItrendLevel) ||!ItrendFilter) //iTrend filter

) {

if (StopLoss!=0) ldStop=sigsl+StopLoss*Point;

if (TakeProfit!=0) ldTake=Bid-TakeProfit*Point;

SetOrder(OP_SELL, Bid, ldStop, ldTake);

sellsig=false;

ttime=Time[0];

I have already try to change this code line

[PHP]if (StopLoss!=0) ldStop=sigsl-StopLoss*Point;

...but... without success

Here is the orginal EA

Thank's

Files:
 

It is possible to insert a trailing stop to this EA?

I have tried this Ea on the currency GBP/USD and I think that he can give good results with a trailing stop.

Who helps me to insert a trailing stop?

THANKS

Files:
Reason: