RoyalPrince Scalper Set

Lots=0.1
RiskPercent=2.0
OrderDistPoints=200
TpPoints=200
SlPoints=200
TslPoints=10
TslTriggerPoints=10
Timeframe=16385
BarsN=5
ExpirationHours=50
Magic=111

settings also for moneyprinter EA

/Snippet

void iProcesses()
  {
      if(PositionSelect(_Symbol))
        {
         if(PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_BUY)
           {
            double bid = SymbolInfoDouble(_Symbol,SYMBOL_BID);
            if(bid > PositionGetDouble(POSITION_PRICE_OPEN) + TslTriggerPoint* _Point)
               SLPrice = NormalizeDouble((bid - TslPoint * _Point),_Digits);

            if(SLPrice > PositionGetDouble(POSITION_SL))
               PosModify(SLPrice,PositionGetInteger(POSITION_TICKET));
           }

         if(PositionGetInteger(POSITION_TYPE) == POSITION_TYPE_SELL)
           {
            double ask = SymbolInfoDouble(_Symbol,SYMBOL_ASK);
            if(ask < PositionGetDouble(POSITION_PRICE_OPEN) - TslTriggerPoint* _Point)
               SLPrice = NormalizeDouble((ask + TslPoint * _Point),_Digits);

            if(SLPrice < PositionGetDouble(POSITION_SL))
               PosModify(SLPrice,PositionGetInteger(POSITION_TICKET));
           }
        }
  }
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x