Forum

Converted an MT4 to MT5 indicator, but some of the accounting definitions don't work

Hi, I need a little help and other eyes. I have converted an MT4 indicator to MT5, which only displays info eg. account balances , profits % and a few other things. I got most to work but the calculation of the profit and commission is not working, no error, just not picking up the figures. this is

Hidden TS only works on 1 chart and not on all open charts.

Hi, need a little help. I have tried so many options, but just can't seem to get this working properly. I created a hidden trailing stop, which works fine if I only have one chart open , but when I have two charts open, it only seems to produce the TS on one chart. I'm hoping that other eyes can see

Display a Day as a string and not number

I am trying to find the correct code to display the Day and time Date & Time :"+TimeCurrent()+" Day: "+TimeDayOfWeek(Time[0]) It currently displays as Date & Time: 2021.09.07 13:50:40 Day: 2 What I want to do is: Date & Time: 7th Sep 2021 13:50 Day: Tue Or something similar. Any guidance would be

iEnveolpe trigger and settings

Hi, need a little help. i have an indicator that seems to be working fine, i just want to add an extra filter to the trigger.. I have Envelope and would like to add the bar count and price open/close eg..Bear or Bull candle.. I have the MA Filter working (kinda), I seem to be only getting the BUY

Label on H_Line

i am trying to add a label to my H_Line I have tried OBJPROP_NAME AND OBJ_LABEL, but nothing is quite working correctly. if (TriggerLineTrade== "CA" ) {ObjectSet( objNameDes, OBJPROP_COLOR , clrOrange ); ObjectSetString ( 0 ,objNameDes, OBJPROP_NAME , "Close All" );} or i tried OBJ_LABEL

Counting candles from trigger.

HI, I have a few indicators that I set a Global trigger to eg TriggerHit=Sell. What I am trying to do is count the candles after the trigger so that I can reset the Trigger to=Null. I have looked at iBarShift, I also need to have it run the routine only once per candle/tick. nBars= iBarShift (

Profit display of YTD..

Hi, I have managed to create a variable for Daily profit, Weekly profit and monthly profit, but can't find the PERIOD_?? for Yearly. I have searched everywhere, but can't find the code for PERIOD_YR double GetBalanceMonthly() // Monthly Start Balance { double _resD=AccountBalance(); datetime

Edit box on chart

Hi, I have created an indicator with displays and buttons that change variables, but now I want to create an edit button on the chart. I have managed to get the button on the chart, but I can't seem to figure out how to get the entry (number) to transfer to my variable. //=====================Input

MessageBox (Yes/Cancel)

HI,, I have an EA that works great.. I added a Button to Close all trades, but I want to add a messagebox that confirms the entry.. EG.. Are you sure Yes/No/Cancel. But I can get the message box to come up, but when I hit Cancel it still closes the open orders. I have searched the documentation, but

Converting Indicator to EA

Hi, need some help I have converted an Indicator to EA, but it still seems to think that it is an Indicator. "no indicator window property is defined, indicator_chart_window is applied 0 0" I have gone through the coding and everything looks good, except I think it might be due to the Buffer, which