Forum

Please Help to find out the Flaws.

I have been testing this EA for a while now. But it's not Performing as Expected. My requirement was that the EA should Open trade just Once after fulfilling a trading condition. Like if the 'Buy' condition is met, it'll Open Buy trades just Once. It wont open any more trade if the current trades

How to Draw S/R Lines and Block?

How to draw a Support/Resistance line depending on just a Single Price? Like drawing a single Horizontal line at price 1.3850. And how to draw a block between two prices? Like drawing a rectangular block between 1.3850 & 1.3860? Regards

EA Should Open trade Once per Signal.

I have been trying to make it work but not getting it right. Probably my logic isn't right at all. The goal is: EA Should open trade only Once when it gets a New Signal. Even though the opened trades got closed, it wont open any New trade unless it gets the Opposite Signal. So for this what I have

EA working as expected in Strategy Tester but not in Real Market?

When I am testing this EA at strategy tester it's working as expected (Except it's opening 4 orders at the starting instead of 3). The expectation is: It'll Open 3 trades at first. Then if all these trades got closed and the same condition is still valid, it'll open 1 trade only. When it'll get the

How to upgrade indicators for Build 600+?

What are the things need to be changed for making indicators compatible with Build 600+ ? If there any link of the detail discussion please give it. Thanks

Interpreting the Logic from this Indicator.

Here is an indicator I am trying to use in my EA. I defined the buffers of it but now not understanding what logic were used for Buy/Sell Signals . I defined the first three buffers like this: double Buf_0 = iCustom ( NULL , 0 , "xpMA" ,MA_Period,MA_Type,MA_Applied

How to implement this Logic?

I have been trying a Logic to work. After starting, at the first Tick, the EA will execute 'One Set of Logic'. Then from the 'Second' Tick, it'll keep executing another 'Set of Logic'. To do so I tried something like this: int main() { int Choose_Logic; Choose_Logic= TRUE ; if (Choose_Logic== TRUE )

Why TrailingStop isn't working?

I have been trying to make a 'Trailing Stop' function with Break Even. The Break Even part is working but the Trailing Stop part isn't working. Not understanding where I am making the 'Mistakes'? extern double TrailingStop = 7 ; extern double TrailingStep = 2 ; extern double BreakEvenStart= 5 ;

Retrieving Last closed Order's Ticket

I'm trying to retrieve the Ticket number of the Last Closed order. So I tried this: int start() { History_Calling( Symbol (), MagicNumber); BuyOrder= OrderSend ( Symbol (), OP_BUY , LotSize,OpenPrice,Slippage,StopLossPrice,TakeProfitPrice, "Buy Order" ,MagicNumber, 0 ,Blue); if (BuyOrder> 0 ) {

Need Help with OdersHistoryTotal()

I have been trying to get the 'Last Closed Order' from 'History' of closed trades but not getting things done correctly. My EA will open 3 trades simultaneously and when the third trade will be closed, i.e. there wont be any trade left (Buy/Sell) and if the Trade_after_SL==TRUE, the EA will look for