Forum

Diagnosis and Prediction of Tipping Points in Financial Markets ( Log-Periodic Power Law Model (LPPL) for Bubble Detection )

Many studies exists for the Log-Periodic Power Law Model (LPPL) for Bubble Detection based on the article " Diagnosis and Prediction of Tipping Points in Financial Markets Crashes and Rebounds by Didier Sornettea " and his book " Why Stock Markets Crash Critical Events in Complex Financial Systems

Trading Future Candles

Hello, If I want to open a trade after x amount of bars ( say 10 bars ) , then close it after y amount of bars (say 20 bars ) , is that possible How to achieve that while avoid placing trades during Saturdays / Sundays and a void having the trade open though the weekends

iEnvelopes ( Upper and lower )

Hello , In MT4 I used to call the iEnvelopes and define the upper or lower side of the envelope double env1H = iEnvelopes(NULL, 0, ma_period1,ma_method, 0, PRICE_CLOSE, DV1, MODE_UPPER, 0); double env1L= iEnvelopes(NULL, 0, ma_period1,ma_method, 0, PRICE_CLOSE, DV1, MODE_LOWER, 0); However in MT5

Scanning the history counting consecutive losses and profits

I want to scan the history of the trades to check if I had 3 consecutive wins or 3 consecutive losses I wrote a code and this one scan only the last two trades even if I increased the Bistory and make it equal to 4 or 5 extern int Bistory =3; int OrdHistory = OrdersHistoryTotal ( )

Close all orders with magic number at certain profit

I need help please, I am trying to close orders from different currency pairs ( long and short ) but with the same magic number when the profit reach define target " lets say 15 pips" without touching the other orders with different magic number so I wrote this code to check open trades and count

-ve pips count ?

I am trying to find the number of pips in loss so I made this line if (OrderType()==OP_BUY) { PipsOpenPL=PipsOpenPL+MathRound((OrderClosePrice()-OrderOpenPrice())/MarketInfo(Symbol(),MODE_POINT)); } if (OrderType()==OP_SELL) {

Select By Magic Number ?

I want to select order by magic number, as I have different orders on different pairs and different magic number on the same pair ( symbol ), in total I have 4 magic number on the same currency and I am trading 3 currency pairs Can I select orders by magic number ? What I want to do is that: if