lancenkeisha
Newbie
- Messages
- 5
- Likes
- 0
Hello
I am new to coding in easy language and I need some help to complete the system. The system is to place an arrow on the chart in the direction of the trade based on
1) Bull
Price crossing above a SMA (9) By 10pips ( at Close )
MACD in a Bull Mode
RSI Greater 50
and the reverse for the Bear trade
Please see the code that I am having Problems with Below
Inputs:
FastLength( 12 ),
SlowLength( 26 ),
MACDLength( 9 ) ,
Price( Close ),
Length( 14 ),
OverSold( 30 ),
MA_Length( 60 );
variables:
var0( 0 ),
var1( 0 ),
var2( 0 ) ,
var3 ( 0 ),
var5 ( 0 );
var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;
var2 = var0 - var1 ;
var3 = RSI( Price, Length );
condition1 = FastLength > SlowLength ;
condition2 = var3 > 50;
condition3 = Price >= MA_Length + 10;
if condition1 and condition2 and condition3 then
Buy ( "10point MA Cross" )next bar at market;
I am new to coding in easy language and I need some help to complete the system. The system is to place an arrow on the chart in the direction of the trade based on
1) Bull
Price crossing above a SMA (9) By 10pips ( at Close )
MACD in a Bull Mode
RSI Greater 50
and the reverse for the Bear trade
Please see the code that I am having Problems with Below
Inputs:
FastLength( 12 ),
SlowLength( 26 ),
MACDLength( 9 ) ,
Price( Close ),
Length( 14 ),
OverSold( 30 ),
MA_Length( 60 );
variables:
var0( 0 ),
var1( 0 ),
var2( 0 ) ,
var3 ( 0 ),
var5 ( 0 );
var0 = MACD( Close, FastLength, SlowLength ) ;
var1 = XAverage( var0, MACDLength ) ;
var2 = var0 - var1 ;
var3 = RSI( Price, Length );
condition1 = FastLength > SlowLength ;
condition2 = var3 > 50;
condition3 = Price >= MA_Length + 10;
if condition1 and condition2 and condition3 then
Buy ( "10point MA Cross" )next bar at market;