Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Afraid I can't help with the above questions as I'd bet I'm the newest wanabe programmer here
I have successfully (finally!) done my first simple indicator which simply places 4 EMAs onto a chart - and they can be adjusted WOW! I'm chuffed actually
Wot I'd now like to do is have the option of adding levels to one or more of the EMAs. Does anyone know how to do this in the code? Also is it possible to have them as an extern variable - to be able to vary the levels - or to do this would if have to be another parameter?
Once I can crack this, I'll add show boolean things so I can turn each EMA off - small steps at a time. The theory is, find the best fitting EMA and add levels showing the range (maybe 2 levels up and two down).
Hi does anyone know of a way to keep sending a close or open to your broker if you keep getting trade context busy signal?
You'd have to put the ordersend in a loop and check the response from your broker. If the response is -1 send the order again. You might want to put a slight delay before you send it again using the Sleep function.
and compiled the EA and it seems everything is ok since I get alert on chart when I attach it ( says that custom indicator is attached)
What bothers me is that I don't know what to do next,how to tell the EA to buy and sell because the indicator creates 2 types of arrows.
Can anybody help me in any way? advice or anything please?
Well you're using the icustom incorrectly for a start. The last variable should be the bar that you want to check, usually 0 or 1, or it could be a variable. Not sure why you're sending a color?
The second to last variable is the buffer you're trying to return. If it's only got the two arrows I'd guess buffers 0 and 1. So what you'd do is check if either are set to something other than 0 or NULL, depending on the indicator. You'd need to look at the indicator code to figure out which buffer is related to which arrow and then use them accordingly.
Can anyone help me to better understand how to modify code to allow EA to execute simultaneous orders in several instances (in other words I am testing the same EA, on several pairs at once, and am using different magic numbers for each instance.)
The original code includes this:
int total=OrdersTotal();
if(total<1)
And I think this is where the problem is. If I increase the number, it merely executes several orders on the same bar (M15) for the same pair. If left if(total<1), then it will not allow for simultaneous orders on different pairs.
Can I change something about the tick or bar to allow only one order at a time per pair, but several orders for all pairs that have EA (with different magic number) attached??
I am trying to get my EA to activate when day seven roles around (Day 7), and Hour 1 roles around, and 55 minutes roles around. What am I doing wrong. Today I started up the computer and the EA started trading right away (before hour 1)!. Please assist.
I want to know how do I plot a Lower Timeframe MA cross on a Higher Timeframe chart.
e.g. I want to plot an arrow on H1 chart when M15 's MA5 and MA10 cross.
Please let me know.
Thanks,
JForex.
An MA on any chart is just a higher/lower version of an MA on a higher/lower time frame. For example if you put a 60MA on a 5 min chart but want to see what it looks like on an hour chart you would just multiply 60 by 12 (5 min intervals in an hour). So a 720 MA on an hour chart is the same as a 60 MA on a 5 min chart.
I am trying to get my EA to activate when day seven roles around (Day 7), and Hour 1 roles around, and 55 minutes roles around. What am I doing wrong. Today I started up the computer and the EA started trading right away (before hour 1)!. Please assist.
Thanks!
Dave
Take another look at the help file.
Quote:
Returns the current zero-based day of the week (0-Sunday,1,2,3,4,5,6) of the last known server time.