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.
:: yes, it will work for buy & sell if the differences is more or equal to 30, of course if you want to have this as a choice in buy or sell then ...
:: if( (Close[1]-Open[1])/Point <= -30 ) Sell
:: if( (Close[1]-Open[1])/Point >= 30 ) Buy
Tried this but all it's doing is Buy orders ??
if( MathAbs(Close[1]-Open[1])/Point >= 30 ) Order = BuySignal;
if( MathAbs(Close[1]-Open[1])/Point <= -30 ) Order = SellSignal;
Woops I had something wrong in my other code
Last edited by matrixebiz; 06-30-2008 at 11:55 PM.
Nope something is wrong. I did this:
if( MathAbs(Close[1]-Open[1])/Point >= 30000 ) Order = BuySignal;
if( MathAbs(Close[1]-Open[1])/Point <= -30 ) Order = SellSignal;
:: Yes the first one is not suitable, I thought you were looking only for a difference, either which direction it went...
:: I put the other one 2 post back hope that helps
Quote:
Originally Posted by matrixebiz
Nope something is wrong. I did this:
if( MathAbs(Close[1]-Open[1])/Point >= 30000 ) Order = BuySignal;
if( MathAbs(Close[1]-Open[1])/Point <= -30 ) Order = SellSignal;
I had to take away the minus sign for -30;
if( MathAbs(Close[1]-Open[1])/Point >= PipDifference ) Order = BuySignal;
if( MathAbs(Close[1]-Open[1])/Point <= PipDifference ) Order = SellSignal;
and does open Buys and Sells but
It doesn't seem to be obeying the conditions. It opens another order right when the other order closes.
It's not opening the trade ONLY when the more than 30 pips difference is met, weird
Last edited by matrixebiz; 07-01-2008 at 12:09 AM.
I had to take away the minus sign for -30;
if( MathAbs(Close[1]-Open[1])/Point >= PipDifference ) Order = BuySignal;
if( MathAbs(Close[1]-Open[1])/Point <= PipDifference ) Order = SellSignal;
and does open Buys and Sells but
It doesn't seem to be obeying the conditions. It opens another order right when the other order closes.
It's not opening the trade ONLY when the more than 30 pips difference is met, weird