Raw Ideas - page 15

 

why ignored? i guess sometimes asian session give clue market movement at european and US session like a EURJPY with EURUSD and GBPJPY with GBPUSD

 

MT4 Indicator to VT

Greetings

Is anyone able to program from MT4 to VT language ?

I am very interested in HoursChannel_v1

Would greatly appreciate any help

Thanks

Files:
 
 

Pyratool

Hi,

Does anyone know where I can get a Pyratool in MT4 code? I've seen one in Ensign.

 

mt4 exp creator

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/

found a link to this on another site....it doesnt have a huge amount of indicators but it does have some custom indicators in there and a custom indicator slot so you can add parameters for what you need ....ENJOY

for mt3 which is this one..only does basic indicators

http://www.fxfisherman.com/forums/1182-post23.html

 

Simple EA system work in backtest, but dont live ?!

Hey :-)

im new here and new in programmiering and i have a problem.

Ife found this EA, and in backtests he "work" very good. But when i test it live, it dont open positions ?! The Trading Terminal options are right......

Can someone help me, or it is a bigger error ?

Here the script:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//---- input parameters

extern double TakeProfit=100.0;

extern double Lots=0.1;

extern double TrailingStop=35.0;

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

//| expert initialization function |

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

int init()

{

//----

//----

return(0);

}

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

//| expert deinitialization function |

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

int deinit()

{

//----

//----

return(0);

}

int Crossed (double line1 , double line2)

{

static int last_direction = 0;

static int current_dirction = 0;

if(line1>line2)current_dirction = 1; //up

if(line1<line2)current_dirction = 2; //down

if(current_dirction != last_direction) //changed

{

last_direction = current_dirction;

return (last_direction);

}

else

{

return (0);

}

}

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

//| expert start function |

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

int start()

{

//----

int cnt, ticket, total;

double shortEma, longEma;

if(Bars<100)

{

Print("bars less than 100");

return(0);

}

if(TakeProfit<10)

{

Print("TakeProfit less than 10");

return(0); // check TakeProfit

}

shortEma = iMA(NULL,0,30,0,MODE_EMA,PRICE_CLOSE,0); // <-------------------------

longEma = iMA(NULL,0,15,0,MODE_EMA,PRICE_CLOSE,0); //

int isCrossed = Crossed (shortEma,longEma);

total = OrdersTotal();

if(total < 1)

{

if(isCrossed == 1)

{

ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,Ask+TakeProfit*Point,

"My EA",12345,0,Green);

if(ticket>0)

{

if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))

Print("BUY order opened : ",OrderOpenPrice());

}

else Print("Error opening BUY order : ",GetLastError());

return(0);

}

if(isCrossed == 2)

{

ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,

Bid-TakeProfit*Point,"My EA",12345,0,Red);

if(ticket>0)

{

if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES))

Print("SELL order opened : ",OrderOpenPrice());

}

else Print("Error opening SELL order : ",GetLastError());

return(0);

}

return(0);

}

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

{

OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);

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

{

if(OrderType()==OP_BUY) // long position is opened

{

// should it be closed?

if(isCrossed == 2)

{

OrderClose(OrderTicket(),OrderLots(),Bid,3,Violet);

// close position

return(0); // exit

}

// check for trailing stop

if(TrailingStop>0)

{

if(Bid-OrderOpenPrice()>Point*TrailingStop)

{

if(OrderStopLoss()<Bid-Point*TrailingStop)

{

OrderModify(OrderTicket(),OrderOpenPrice(),Bid-

Point*TrailingStop,OrderTakeProfit(),0,Green);

return(0);

}

}

}

}

else // go to short position

{

// should it be closed?

if(isCrossed == 1)

{

OrderClose(OrderTicket(),OrderLots(),Ask,3,Violet);

// close position

return(0); // exit

}

// check for trailing stop

if(TrailingStop>0)

{

if((OrderOpenPrice()-Ask)>(Point*TrailingStop))

{

if((OrderStopLoss()>(Ask+Point*TrailingStop)) ||

(OrderStopLoss()==0))

{

OrderModify(OrderTicket(),OrderOpenPrice(),Ask+Point*TrailingStop,

OrderTakeProfit(),0,Red);

return(0);

}

}

}

}

}

}

return(0);

}

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

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Im very happe about help :-)

matze

PS sry for my bad english, im german

 

Need help with 3 line break indicator, please.

I would like to know if anyone could help me with the three line break indicator. If someone could program it to sound an audible alert and show a visual alert when the bar changes color. Something like "the trend has changed to up" would be helpful. I've tried to do it myself but my programming skills are not up to par. Please, anyone help?

DeSoft

Files:
 

Stepindicator for Williams%

Hi Igorad or others,

First of all Igor I would like to thank you for your great work and the fantastic jpb you did on the whole range of step indicators.

I have a sujestion: If you look to the williams% indicator (default in mt4.0) and you place it on 200 and place a center line on 50 then you will see that it does a very simmilar filtering job as the stepmastoc indicators with a value +/- 1.5 and wich is a good value for filtering (used for great systems as the I_FX_T system on the sbfx forum and the catfx50).

If you place this williams% on your screen you will see that it shift above and bellow the centerline more or less at the same moment as your stepmastoc indicator but sometimes it has that litlle bit of wipsaw.

If you place the williams% indicator on default setting 14 you will see that it has the tendency to stay or in the upper part of the data window or in the lower part of the data window and that were a stochastic can be all over the place.

So maybe in the form of a step indicator it would also be a great indicator and could with a litlle bit of luck do a better job then the stepstoc or stepmastoc indicator(wich do already a great job)

thanks a lot in advance.

 

Take a look

Hi, Can you please modify this EA for Stoploss and Money management?

Thank you

 

Price Movement from previous Bar

Hi,

I read somewhere price movement data analysis and on that basis i understand that we can develop a very good system.

Concept is very simple.

Pricemovement (+ or -) either side of current bar as compared to previous bar will decide/ triger long /short trade.

Entry rule:

For an example, we want to trade long if current price is previous bar close+20 pip, or short if current price is previous close-20 pip.

Exit

Either TP 30,/ SL 25,/ Trailing Stop, 15 or close of current bar or Basket Profit.

There is no Stop and reversal entry in same magic #.

We may have some other features also In the EA like

1. option only long/only short both

2. Time Filter trade open time and Close time

3. Day filter

Reason: