支持中心 帮助文档 联系我们
📱 微信: 18391752892 | 💬 QQ: 3313198376 | ✈️ Telegram | 📧 fishfx123@gmail.com
EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34% EURUSD 1.0856 +0.12% GBPUSD 1.2678 +0.08% USDJPY 149.23 -0.15% XAUUSD 2034.56 +0.34%

Aggressive Step Trading

👤 作者: Chia Leilypour

4.5 分

¥0.00

📌 版本: v1.0
📥 下载: 0
⭐ 评分: 4.5

📝 产品详情

Aggressive Step Trading

作者Chia Leilypour
版本v1.0
激活数0
//+------------------------------------------------------------------+
//|                                                   RSICascade.mq5 |
//|                                  Copyright 2024, MetaQuotes Ltd. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2024, MetaQuotes Ltd."
#property link      "https://www.mql5.com"
#property version   "1.00"
#include <Most_Common_Classes.mqh>



   double lotSize;
   int RSIShift_current = 0; 
   int RSIShift_Previous = 1;

   
   bool enough_money;
   bool enough_valume;
   string message;
   bool IsBuy;
   bool TradeIsOk;
   double StopLoss;
   double TakeProfit;
   double Refference_MA;
   double Current_RSI;
   double Previous_RSI;

   input double RiskPercent=0.01;
   input double R2R=2;
   input double StopLossPoints=400;
   input double MinimumStopLossPoints=100;
   input int RSIPeriod = 7;
   input int RSI_LowerLimit=30;
   input int RSI_HigherLimit=70;
   ST_StopLoss_TakeProfit arr;

void OnTester()
{

}
void OnTick()
  {
     double ask = NormalizeDouble(SymbolInfoDouble(_Symbol, SYMBOL_ASK), _Digits);
     double bid = NormalizeDouble(SymbolInfoDouble(_Symbol, SYMBOL_BID), _Digits); 
     
     Current_RSI=RSICalculator(_Symbol,PERIOD_CURRENT,RSIPeriod,RSIShift_current);
     Previous_RSI=RSICalculator(_Symbol,PERIOD_CURRENT,RSIPeriod,RSIShift_Previous);  
     Refference_MA= MACalculator(_Symbol,PERIOD_D1,30,1,MODE_SMA,PRICE_CLOSE);
     
     
     if(IsNewCanddle(PERIOD_H1))
         {
         TradeIsOk=true;
         
         //if(PositionsTotal() != 0)canddleCount=canddleCount+1;
         
         }  
     
     
        if(Current_RSI>RSI_LowerLimit && Previous_RSI<RSI_LowerLimit && SymbolOpenOrders(Symbol())==0 && TradeIsOk && ask>Refference_MA)
            {
      
               StopLoss=ask-StopLossPoints*Point();
               //lotSize=OptimumLotSize(_Symbol,ask,StopLoss,RiskPercent);
               lotSize=0.01;
               enough_money =CheckMoneyForTrade(Symbol(),lotSize,ORDER_TYPE_BUY);
               enough_valume=CheckVolumeValue(lotSize,message);
               TakeProfit=ask+R2R*StopLossPoints*Point();
               if(enough_money && enough_valume)Trading.Buy(lotSize, NULL, ask,  StopLoss,0, "Logic Order");
               IsBuy=true;
            }
     
        if(Current_RSI<RSI_HigherLimit && Previous_RSI>RSI_HigherLimit && SymbolOpenOrders(Symbol())==0  && TradeIsOk && bid<Refference_MA)
            {
      
               StopLoss=bid+StopLossPoints*Point();
               //lotSize=OptimumLotSize(_Symbol,ask,StopLoss,RiskPercent);
               lotSize=0.01;
               enough_money =CheckMoneyForTrade(Symbol(),lotSize,ORDER_TYPE_SELL);
               enough_valume=CheckVolumeValue(lotSize,message);
               TakeProfit=bid-R2R*StopLossPoints*Point();
              if(enough_money && enough_valume)  Trading.Sell(lotSize, NULL, bid, StopLoss,0, "Logic Order");
               IsBuy=false;
            }  
            
      
           if(TradeIsOk && SymbolOpenOrders(Symbol())>=1)
      {   
        //arr=Cascade_trading(_Symbol,lotSize,IsBuy,ask,bid,TakeProfit,StopLoss,StopLossPoints,MinimumStopLossPoints,R2R,true, SymbolOpenOrders(Symbol()));
        
       
         //TakeProfit=arr.NewTakeProfit;
         //StopLoss=arr.NewStopLoss;

      }
   
  }

安全须知

本产品仅通过 MQL5.com 官方渠道获取。其他渠道版本可能缺少完整功能和技术支持。

EA 配置

交易品种XAUUSD
时间框架H1 (推荐)
推荐经纪商IC Markets, IC Trading
最低存款$300 / 0.01手

📸 截图预览