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.
Looks about right. It's a bit messy though. You could also use OrderProfit depending on what you actually want to achieve.
Lux
PS: Forgot to mention to watch out for 5 decimal place brokers. Everything needs to be multiplied by 10 so in your example 5 would be 50. Good luck!
Thanks LUX
Problem is that I have it running just to debug on a 1 minute GBP/USD chart with Windsor direct and it is Not closing 1 lot when it hits the 5 pips so I don't know what the deal is.
ALSO,
I'm trying to close a buy and immediately open a Sell and THAT"S NOT GOING to well either.
It works and then it doesn't...
I WISH THIS WAS ALOT easier to program
I am new to this language and I am trying to write an indicator. I am having problems since there is no debugger. I tried to use the Print() but nothing gets printed. Using the Alert() I get ZERO as an output for the buffer[1] . Can anyone explain this to me please. How can I use the Print() and Alert() to debugg without getting all ZEROs. If anyone has any ideas please let me know. Thanks so much.
I would like some help programming an additional input to this ea.
It is a basic grid/mart sys that places pending orders above and below the starting price at equal increments where the tp for buy orders is the same value as sl for sell orders and viceversa.
From what i can work out It currently calculates the tp/sl as (4 * pip increment) from the price at which you start the ea.
I would like an input which would allow me to adjust tp/sl by X number of pips.
I'm trying to get my EA to count the number of bars within a given period (i.e.; last 20 bars) that closed bullish and bearish. I came up with this while statement but it doesn't work, it always prints Bull Bars:0 Bear Bars:20. Any thoughts on what I am doing wrong?
// Count bull and bear bars
double open, close;
int bull_bars=0, bear_bars=0;
int bar_count=20; // Bars to count
if(Volume[0] == 1){ // Only check on open of new bar
int bars=0;
while(bars < bar_count){
open=iOpen(NULL,0,bars);
close=iOpen(NULL,0,bars);