Forum

Resource or Include

to import an indicator into my ea should I make it a resource? or would the effort to change my indicator into an include file, be worth it? NOTE: i will be using the ea on several symbols + charts. NOTE II: working on a mt5 ea

First attempt at creating a service. says removed. but has the play icon.

gidday. This is my first attempt at creating a service. The plan was to make this into an ea that would close all trades when other eas changed a globalvariable. But I had been reading up on services, so I thought i'd have a crack at doing a service; altho I am unsure if a service or an ea is better

how to use ChartRedraw()

How do I use ChartRedraw()? I have my comment/OSD function like so... and eqplus iStartLots and Spread is in ea inputs. void osd2() { Comment ( "\n Profit Target = $" + DoubleToString (eqplus, 2 )+ ", Minimal Profit per Trade = " +

in journal: pages of Chart: Saved.

What is this? I updated mt5 to 4162 by downloading setup file from broker and since then, I have had these going into journal at start of every candle; multiplied by the number of charts i have open

Invalid Volume

double lot = NormalizeDouble ( fmax ( 0.01 , 0.5 *iStartLots), 2 ); trade.PositionClosePartial(tk,lot,iSlippage); Error in Journal... 2024.01.30 00:36:36.832 Trades '24046': failed market sell 0.07 GBPJPY, close #6130450 buy 0.06 GBPJPY 188.082 [Invalid volume] "iStartLots" is 0.13 as input double

update 4153. live chart candles gone!.

my candles have gone after doing the update to get 4153. I have no trades open. How do i fix this

import platform from laptop to desktop

I am not sure if this is the correct section of forum, so please move it to correct section if it needs to be moved. Issue: I was trading LIVE on my laptop, but now I want to move move the trading stuff to the desktop. I tried copying and pasting every folder from the terminal data folder to the

saved file or global variable?

gidday. I have my ea that I normally only trade 1 or 2 pairs, BUT I want to use it on more pairs now. This function which determines its trail stop and stop loss depending on a bool; true or false function like so... bool margo() { if (equ< 0.85 *bal) return false ; if

IsNotFriday() coding ea

I am not sure if i have done this right; Please check that I have done this correctly. I have written a bool function (for my ea) that checks (i hope) that it is NOT a friday. bool IsNotFriday() { MqlDateTime structTime; datetime time[]; CopyTime ( NULL , PERIOD_CURRENT , 0 , 3 ,time);

(MT5 coding) add up all deposits

1 full hour of reading threads and posts to no avail. All input is appreciated. Q...How do I add up all Deposits into account via code