Forum

Import CSV Bar Data Simply NOT Working

I've read a few articles, and still have yet to find a working solution for this, while also trying not to deviate too far from what the documentation says to do. I'm trying to create my own custom SPY symbol ( different than the default SP500m data provided by the demo server ). For ease (and THIS

ThinkSript's Relative Volatility Index Indicator in MQL5

Trying to translate ThinkOrSwim's Relative Volatility Index indicator to MQL5, and I'm close (I think), but it's not plotting the same as in ToS. I found this indicator already written in MQL5, however whenever I utilize it in optimization of a trading strategy, it runs extremely slow, so I want to

Creating My First Indicator: Relative Volume

I'm attempting to create my first MQL5 indicator, the Relative Volume. Relative Volume is just the current tick's volume / average volume over past n bars. Simple. I've read the two articles for newbies ( here and here ), but am just a bit unclear on some things that I will be able to decipher on

MQL4 - Trying to add lot size as percentage of margin to EA

Ok guys, I am at a total loss as to why this isn't working. I have a nice snippet of code that I like using to optimize the lot size based on a percentage of account balance and the stop loss that's been set, but I don't know why the EA is only keeping it at a constant 0.1. I have been trying to

As long as PARA SAR dots are below price...

Hey guys, Hoping to get some help to code a close condition. Just making my own moving average crossover EA. My first close condition says if 5 EMA crosses 21 EMA, but now I want to add another condition, so I have an "OR" condition. Now what I want is the EA to count how many SAR dots are formed

Lots Management Ideas?

Hey all, Having some troubles implementing a lots management strategy. I'm basically just wanting to implement a risk per trade. I have a simple RSI EA that I'm trying to add it to. Found a code that looked simple enough, but I'm getting Error 4051 - invalid lots amount for OrderSend function . Any

Unable to execute BuyStop and SellStop orders at same time from EA

Hey guys, Just wondering if you can offer some insight. I've looked around for answer but have come up short. I have a few different news trading EA's that straddle the current price with stop orders above and below it at a certain time before a news release. Works good, only problem is, once the

PlaySound keeps repeating

Hey guys, I am creating just a very basic EA that says if certain conditions are met for both and sell, then PlaySound. The conditions look like this: if((iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,1))&&(Open[1]>iSAR(NULL,0,0.02,0.2,1))) // open buy

EA to allow opening of opposite trade type

Hey guys, My EA basically states, if Total Open Orders <= 1, buy/sell conditions. What I want now is for the EA to see that if it creates a buy order, it can still allow a sell order to be made but NOT another buy order. My EA states that up to 2 orders can be open at one time, but I want it to only

Requesting coder for small custom EA

Hey guys, I have tried to code it on my own, but to no avail as I am a newbie and I am on a bit of a time crunch. I need someone with some experience to code an EA for me using a few custom indicators (which I can send). I have all the information needed, just need someone to code it for me. Willing