Dear Ahmad9666,
My name is Erik Skyba; I’m the Senior Market Technician here at TradeStation.
In response to your question, I’ve posted the following easy language code below.
In the future, if you have any other questions regarding EasyLanguage, I encourage you to use the EasyLanguage forum on our website. Here is the link:
https://www.tradestation.com/Discussions/Forum.aspx?Forum_ID=213
Regards,
Erik Skyba, CMT
Senior Market Technician
TradeStation Securities
Variables: CandleClose( 0 ), CandleOpen( 0 ), CandleHigh( 0 ), CandleLow( 0 ); //Declare Variables
CandleOpen = Open;
CandleClose = Close;
CandleHigh = High;
CandleLow = Low;
//Strategy Rules
If Candleclose > CandleOpen and CandleOpen = CandleLow and CandleClose = CandleHigh
then
buy this bar at close; //Buy for a Green Full Body Candle Condition
If Candleclose < CandleOpen and CandleOpen = CandleHigh and CandleClose = Candlelow
then
sell this bar at close; //Sell for a Red Full Body Candle Condition
//Risk/Profit Control
SetStopShare;//Use the SetStopContract for Futures Contracts
SetStopLoss(3);//3 Point Stop Loss
SetProfitTarget(2)//2 Point Profit Target