this is a snippet of how the magic happens
//Open Buy Order (RSI BURST : BUY), instant signal is tested first
if(Cross(0, iRSI(NULL, PERIOD_CURRENT, 10, PRICE_CLOSE, 0) > TrendlinePriceUpper(0)) //Relative Strength Index crosses above Upper Trendline
)
{
RefreshRates();
price = Ask;
if(!inTimeInterval(TimeCurrent(), TOD_From_Hour, TOD_From_Min, TOD_To_Hour, TOD_To_Min)) return; //open trades only at specific times of the day
if(IsTradeAllowed())
{
ticket = myOrderSend(OP_BUY, price, TradeSize, "RSI BURST : BUY");
if(ticket <= 0) return;
}
else //not autotrading => only send alert
myAlert("order", "RSI BURST : BUY");
Disclaimer: The views expressed are solely those of the author and do not represent the official position of Followme. Followme does not take responsibility for the accuracy, completeness, or reliability of the information provided and is not liable for any actions taken based on the content, unless explicitly stated in writing.

Leave Your Message Now