Codes

Equity Trailing EA MT5 for MetaTrader 5

This EA started off as a job to trail equity. I then added the function of managing individual trades. Thereafter I added the facility of manually putting the price of when it can send a grid of pending order's. This EA does not have condition set in it to open trades. You have to determine that if

Forum

Uninitialized Variable Help

I have the below code in my EA. When I compile Order ticket is said to be uninitialized and the OrderSend value is said to need checking. How can i fix this? void DeletePendingOrder( ENUM_ORDER_TYPE type ) { long order_ticket; HistorySelect ( 0 , TimeCurrent ()); for ( int i=

Array Conflict Help

I have the following functions below. When one function is called up with out the other being called up, There is no conflict. The conflict is noticed when order blocks have to be drawn on the chart. When both functions are called up, the order blocks are failing to be drawn. What code in each

Order Block Script Help make Indicator

I have attached two order block scripts that I coded. Any kind soul willing to help turn it into a indicator. Am sure the community will benefit from such kindness

Finding Highest High Of Bull Candles Only

//+------------------------------------------------------------------+ //| Highest High Bullish Candles.mq5 | //| Copyright 2020, MetaQuotes Software Corp. | //| https://www.mql5.com |

Help in simplifying my Peak High Low Code

//+------------------------------------------------------------------+ //| Get H Line | //+------------------------------------------------------------------+ int PikBar( ENUM_TIMEFRAMES timeframe, int mode, int shoulder, int startBar, int peakNo) {

error order select value to be checked

I am getting an error on the below code( return value of order select should be checked). Anyone able to help with removing error. Have attached full EA code int CountPendingOrders() { int TodayslimitedOrders = 0 ; for ( int i= 0 ; i< OrdersTotal (); i++) { OrderSelect ( OrderGetTicket

Equity Trailing EA MT5

For those who have searched and found nothing. Hear you are. Make sure Allow algo trading is checked . Place on a chart of a currency whose positions are opened. Otherwise would have loved it works on any chart but could get it to do so. May be one of our proffesor programmers can sort it out

iHigh(Symbol(),PERIOD_D1,0) is giving me Highest close

I am having the above problem. I have coded iHigh(Symbol(),PERIOD_D1,0) in order to have todays highest price. But instead the display on the chart of the result of code shows it is giving the highest close. This could be an empty 4 problem

Trailing Stop Coding Error Correction request

any body able to assist fixing the compile errors in the code below //+------------------------------------------------------------------+ //| defines | //+------------------------------------------------------------------+ // #define MacrosHello "Hello, world!" //