Forum

How do I only open 1 single buy trade?

I'm trying to make my EA to open a single long trade ONLY when it crosses the 70 level. Unfortunately, it opens many buy orders. I did something wrong but I can't find the error. #include<Trade/trade.mqh> CTrade trade; void OnTick () { //creating an array for several prices double

Why one if works and the other don't?

My EA is supposed to open a long trade when the RSI value is greater than 70, the k is 1 and there's one position open in the current currency pair. That part works, I tested it, but when we go to the part of doing the reverse, it's doesn't happen anything, in other words, when the RSI value is

What does Close, Open, High, Low, Median, Typical and Weighted price means?

I'm generating a EA through MetaEditor and I don't know what those words mean. Is it refering to the price when is supposed to close the order or? I'm really confused