Forum

Help please, array mangement question. MQL4 vs .Net

Hello, I am bringing some of my indicators over from NinjaTrader which are C# written and have a couple of questions regarding array management I am hoping someone can shed some light on. 1.) In c# I use "foreach" to search a double arrray to count how many times a particular double exists in the

How to Trade only once per 24hour period

Hi, I have a EA that I only want to trade once per day..... It puts a BuyStop in at a particluar level and if it doesnt get trigged by the end of a 24 hour period it expiires. If it does get triggered though, i want to ensure that my code wont put the trade on again. Normally i would just use a

Using a Specific Bars range.... Same time every day....

Hello, I am trying to write a code so that i can work off the highs and lows of a specific bar per day.... The specific bar will be defined by time.... E.G. Just say i want to use the range of the 4 hour bar that starts at 4:00 and finishes at 8:00 every day.... obviously i wont be able to trade off

Ihighest & Lowest return strange values?!

Hi, I am writing an EA that will use 50% of the previous 3 day range. E.G - If today is Thursday it will find the center value of Mon-Wed range and if its Friday then Tue-Thursday's range etc. I would like to be able to run this EA on smaller timeframes but still want it reading the 3 day range... i

Why does this EA sometimes open another order randomly?!

I am brand new to coding and have written this program to open orders quickly as my trade management requires that i exit portions of my trade at different takeprofit levels therefor i am need to open 3 positions when i get into a trade, all of different sizes. The idea of the program is to give you

Going MAD!!! OrderSend won't work once i use variable to define StopLoss

This EA is designed to put a limit back on a drawn line after the relevant timeframe closes below it. I am just using a sell at bid for now so i can test it on the 1minute chart. I have added a chime so you know once the program has run past the order send function. Whenever I try to add a stop loss