Arnold
Arnold
Friends

Add friends via their profile or user search and you will be able to see if they are online

Arnold
Added topic EA overlapping during busy hours?
Dear All Let's say that I've programmed an EA that takes 1 second to run from start to end (including opening/closing orders). What happens if the market is very busy and ticks come 2 or more times in a second. Does that mean that the second instance
Arnold
Added topic Super Easy Question...
Real Quick Question... what is the script for an END function in MQL? Here's what I'm trying to do: If(TotalOrders() == 12 && TotalProfit() >= TargetProfit) { what do I put here so that it won't continue processing the rest of the script
Arnold
Added topic Opening orders during high volatility
Hi folks! I'm trying to build a hedge EA. Basically my EA opens a buy in one pair and a sell in a correlated pair. Basically the isdea is to have the same number of buys as sells. My problem though is that sometimes the EA opens orders of the same
Arnold
Added topic running external program
Does anybody know if there's a way I can code my ea such that when all positions close, it will run "c:\shutdown.exe" which turns off my pc? is there a run command or shell command anyone is familiar with? Thanks! :)
Arnold
Added topic sending out orders
Question: When my script opens an order, does it wait until the order is placed before it continues on with the rest of the script? It feels like there is an overlap. like the script goes on without even any confirmation that the order was placed
Arnold
Added topic In your opinion is the best phone for Metatrader Mobile?
Please give me feedback if you have tried trading on your phone. I want to get one to monitor my account and close trades on the go. Please give me as much inputs and pros/cons as possible. :) Thanks all and happy trading
Arnold
Added topic OrderSelect 2 most recently opened positions
So I've been trying to wrap my mind around it, but how can I select the 2 most recently opened positions using OrderSelect ? I would really appreciate it if someone could please paste in a script that I can work on. Bottomline is I need to get the
Arnold
Added topic problems reading text file
Hi All, I was able to write a script that writes the last opened price into a csv file. Now my problem is how to assign the data in the csv file into a variable.. Below is the script I made. When I try to compile, an error pops up saying that the
Arnold
Added topic Help with drawing lines with my EA..
I am trying to draw a trend line of the bid prices raised to the z power (where z is a variable). Just have a few questions about object draw.: What does time1, price1, time2, price2, and time3, price3 mean? The help file just says time part and
Arnold
Added topic Can EAs draw trendlines like indicators?
Very basic question but I still haven't learned this. Can EAs draw trend lines on the chart? I want my EA to draw the GBPUSD bid prices on my EURUSD chart . If its possible please point me in the right direction. I need to know which commands I'll
Arnold
Added topic Open trade only within the 1st 7 candles after alligator indicator confirms trend?
Hi Guys, I wanted to hear some suggestions on how I might go about programming this I idea I have. I've created an EA that opens trades using stochastics as entry signal and alligator as trend indicator.. My logic trades based on candle data, and I
Arnold
Added topic Comment function and Variable issue..
Hi, I have 2 questions.. 1) how can I use the comment command to write stuff on a second line.. and 2) Can you help me figure out how to get me script to work below? All I want is for the variable "Trend" to be recognized in the start
Arnold
Added topic needs help with stoploss modifications.. =)
Hi All, Ive been trying to figure out what is wrong with my code below. Basically, I want to modify and order's stoploss once it hits a desired price. Please tell me what i'm doing wron.. i've read it over and over a lot of times but still can't get
Arnold
Added topic trouble with global variables..
Hi everyone, Maybe you guys can help me.. So I assign a global bool variable at the beginning of my script and assign it to false.. But when I run my start function in the tester though, it treats it as if it were 'true'.. I'm probably missing
Arnold
Added topic How can I assign a "true" value to a variable if the last closed trade has a negative profit?
Hi folks! Basically, I need to assign a 1 to my variable if the last closed trade was positive, and a 0 if it was negative. I'm sort of doing a martingale strategy with a positive expected profit.. Please give me suggestions and/or clues.. Whoever
Arnold
Added topic Need help integrating 2 different codes.. =)
Hi, I want to attach this code in blue to the moving average EA in metatrader right under it.. Ive spent a whole day and a half trying to get it to work. Maybe you can help? The idea is that right after a trade loses, i want the next trade to
Arnold
Added topic How can I place a new trade right after losing a one?
Hi guys, I have a portion of code that I can't get to work.. The whole idea is that if the sum of profit for my magic number is negative (ie the last trade lost), then I'd like for the EA to place a new trade. Am I going off on the wrong direction
Arnold
Added topic How can I close all positions that are open after 24 hours?
Hi folks! I was wondering if anyone can help with this simple problem. I set my EAs to run on the 1 hr timeframe, but I want all positions to close after 24 hours.. I've attached my code below and am still having a hard time transitioning from VBA
12