Forum

simple pending order EA

hi please can any one help me with this pending order ea. It should open one buy stop and one sell stop each side of the market. The problem it has is it opens a buy stop then a sell stop then another buy stop:/ if I change to the code so it has the sell stop first then I get two sell stops and one

stochastic not working

Hi can anyone tell me why my stochastic code wont open any trades and how I can fix it :-/ many thanks #property copyright "Copyright 2010, MetaQuotes Software Corp." #property link "http://www.mql5.com" #property version "1.00" input int StopLoss= 0 ; // Stop Loss input int TakeProfit= 0 ; // Take

stochastic code

hi please can somebody help me with my first bit of coding ever. its based on the step by step guide for beginners www.mql5.com/en/articies/100 I've taken out the ma and adx indicators and I think i've but in a stochastic. The ea will run in he tester but doesn't open any trades #property copyright

newbe stochastic

input int StopLoss= 0 ; // Stop Loss input int TakeProfit= 0 ; // Take Profit input int KPeriod= 5 ; //stochastic k line jcode input int DPeriod= 3 ; //stochastic d line jcode input int Slowing= 10 ; //stochastic jcode input ENUM_MA_METHOD StochMethod = MODE_SMA ; //stochastic jcode input