hi guys
i have problem whit strategy tester. i wrote a script as follow. when i run the strategy tester, in every tick, a new indicator well add to the chart.
whats the problem?
thanks
void OnTick()
{
int r=0;
double rr[]={0,0,0};
r=iCustom(NULL,tp[i],"jjrsx",8...
Hi
I'm using this for a demo account and I have a problem. It doesn't sell on time and losses profits. https://www.mql5.com/en/code/15248 this the link. What can i do to improve the EA?
Hi to all
in my EA slippage and spread filter doesn't work on real account . please guide me
Code lines related to slippage
extern int Slippage_pip=100;
//int Slippage_pip;
double dig;
datetime time_start;
int curr_band=0;
datetime Prevtime;
double PrevSellPrice, PrevBuyPrice;
datetime...
Hi
This is my first post!
I am currently following a Signal from an author on MQL5, the Signal suggests that I have $ 300 in my account as capital.
I am wanting to trade 10 times that value(ie put $ 3 000 in my account), the problem is that when the signal enters a trade it enters the...
Hello everyone,
I am looking for a way to customize the time brakets in offline chart. For example to remove the data and leave only everyday from 10:00-17:00. So overall chart will be showing a live data only for the selected time brakets. Problem is that it must be done with the standard...
I have searched high and low, left and right all around the web but I just couldn't find an EA that I want.
I've tried e-Trailing, Tight_Trailing_Stops, TrailingStops and a few others. None of them can really activate the Trailing Stop at a certain pricing.
Example:
Let's say I placed an entry of...
Hi,
there are different order types in the backtest I see in my results.
What do they mean?
modifyclose (What is close? On what behalf does the position close?)
s/l (I even got profit from a s/l position) --> is that from trailing that always modifies position?
t/p (I got profit here. that is...
Hello guys. I'm still thinking how to recognize trend with EAs. You know manually, when looking at the graph you can say "ok this is uptrend". Its going nicely upward... My problem is to how to automatically recognize trend. What do I now is doing array of 4 EMA values and then im trying to copare
When I try to set a profit Target using the high and low of bars 2 and 3 the EA does not apply it. Is there something wrong with the code? I am basically trying to subtract from the opening price the difference in pips between the high and low.
TP = (0 * myPoint) - (MathAbs(High[3] -...
Hi all, I am new to automated trading , but I have been successfully trading the breaks of the previous day / weeks bars on Oil and Dax. Does anyone know of a simple EA that would buy the break of the previous days high, and sell the low, and the same on a weekly chart, ie the break of the previous
Hello everyone
After try using #property strict and all going succeed except this code :
// Exit After X Bars
tempValue = getOrderExitAfterXBars(770);
if(tempValue > 0) {
if (sqGetOpenBarsForOrder(tempValue+10) >= tempValue) {
Verbose("Exit After "...
I have an EA that is trading at specific hour of the data. When backtesting I noticed that the trades are placed at the wrong time in winter. Is there a way to account for this in the strategy tester?
I'm using
if(Hour() == SpecifiedTimeInConfig)
is there a way to determine in the backtester if...
I want to ensure that my EAs trade 24/5. Why is it that some EAs need VPS to trade when my computer is turned off? And why don't some EAs need VPS?
hello i'm new here as a seller. i'm waiting for account proving. I have been Trading for 5 years now. I am trading low risk aiming. My Subscription Price is 15$ only. Currently trading the EURUSD , but can change to other pairs, depending on their potential. Wish you all the best and good luck
i dont know why SUM of 2 Orders are not correct , i am trying to close Last 2 orders with Minimum 1 usd profit. but in stratgy tester it,s closing no logic some time 0.50 cents and second trade at 0 , some time first order profit 1 usd and second order close at 17 usd loss. i cant understand what is...
[Deleted]
Hello
I like to know something
if i am managing some 1 account and using my mql5.com account for VPS hosting and i put the EA on it and took hosting also paid 10$
now if the account holder changed the password for his Forex will he be using the EA ? or the EA is connected via my Mql5 only...
i am trying hard to code the ea but no luck please help me i want to close any 2 orders with profit total of 1 usd.
for example
1: -10usd
2: -7 usd
3 -6usd
4: -3
5: +4
i want to close number 4 and 5 because minimum profit target requirement total sum +4 and -3 =1...
Hello, can anyone tell me if I can do a partial close in FIFO accounts. For example. I open 1 lot EURUSD and in the future I do partial closes of 0.10 lots for example. Considering that I always have only one order opened in the same pair, anyone can tell me if this works on FIFO accounts? Thanks
I added this EA to my account June 1st. Pretty decent growth. I'm not trading this week due to Brexit. Plus I decided to switch brokers. So I will have a new myfxbook link soon.
For now, this is myfxbook portfolio: https://www.myfxbook.com/members/LorraineP/jt-auto-trading/1652970
What do you...
Please, I would like some help for errors that are happening when time compile the EA, I'm not getting correct
ERROR -> ')' - not all control paths return a value
double countprofit(int mode){ double profit=0; if(OrdersTotal()>0){ for(i=OrdersTotal()-1;i>=0;i--){...
[Deleted]
why functions TimeLocal & TimeCurrent always give me this date 16.07.07 23:59:59 ? Who know how to get the PC system date & time?
Hi,
I am wondering if when subscribing to a signal whether it is possible not to copy the leverage level?
Thanks!
Do not need any third party plug-ins, can directly open a binary option order; Can be made into binary options EA, automatic trading
Hi Some body help me please to understand if I have a function to directly pass a double parameter to another void function to change StopLoss , which kind of type my first function should have ? Should it be a double function with a return ? -which in this case I don't now what I'm going to do...
Hello all, I've been coding a EA of mine that calls both events that happen OnTick and OnBookEvent. Id like to plot both of them on the chart, but i cant seem to do so without one "flashing" the other. Everytime a BookEvent happens, the BookEvent comment shows up and "erases", "flashes"
Hi
I'm new towards optimizing an EA with different parameters. But may I know what are the possible reasons that causes the best results inputs so different especially when I run it on my Home PC and Office PC and both using the same Broker?
I get different results on the same broker but on...
[Deleted]
HI all
I see in option the field max bars in history and I have set it to 1440.
Using F2 I see that the bars loaded are always greater then 1440, is there a way to keep only this number of bars in the history? Is there any MQL4 command to use to clear the history?
Why did MQL5.com prevent free EA downloaded in markeplace from copying from one MT4 platform to another MT4 platform?
Hi,
I have used iFractal function in an EA and when it detects a fractal it prints an up/down arrow on the bar. the problem is when tester finish testing it displays the fractal indicator and the and arrow doesn't match with the indicator!
I think that iFractal its well configured the For cycle...
Hello,
I am trading with an EA following trend by MA and other indicators.
What good exit signal can you recommend?
What are the best exit signals available that can be programmed into that EA?
Regards.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.