Forum

How do I apply data from the previous indicator?

Hi good people, I am trying to use to MAs with one using data from the other. However, I am unable to skip over this hurdle on my expert advisor. Here is the code I have for this so far. Any pointers to get this working will be highly appreciated. Thanks in advance. //Define properties for Smooth MA

Failed Pending Order - Invalid Price

Hi, I am trying to place a buy stop and sell stop 1 pip above and below close price of the previous candle but keep getting invalid price error. I will appreciate insight on where I am going wrong. Below is what I have: //Import Trade Library #include<Trade\Trade.mqh> //Create an instance for Ctrade

EA Opening One Position Per Signal & Setting A Trailing Stop Loss To The Same

Hey guys, I have a problem with my code and I am not sure how to resolve this. I want to open a single position every time a condition is met. This I have been able to accomplish. The other part is to set a trailing stop loss on this open position. Here is where the problem lies. My current code