Attachments forums

List of attachments posted on this forum.


All files on forums: 134132

Blessing 3 EA translation to MT5

gioooooo, Sun Aug 30, 2020 9:21 pm

Blessing 3 EA translation to MT5


I'm trying to translate the Blessing 3 v3.9.6.09.mq4 to MT5

I notoiced that the logic with which the trade are choosen are the following:

Code: Select all

OP_BUYSTOP  if Entry>StopLevel
where Entry=g2-MathMod(ASK,g2)+EntryOffset;

OP_BUYLIMIT if Entry>StopLevel
where Entry=MathMod(ASK,g2)+EntryOffset;

OP_SELLLIMIT if Entry>StopLevel
where  Entry=g2-MathMod(BID,g2)+EntryOffset;

OP_SELLSTOP if Entry>StopLevel
where Entry=MathMod(BID,g2)+EntryOffset;

With my broker (ActiveTrades) EntryOffset_=0.0005 and g2=0.0025
in back testing mode (for example date 2020.07.14 with EurUsd) for the MT4:
StopLevel=MarketInfo(Symbol(),MODE_STOPLEVEL)*Point;
always return StopLevel==0


Instead in MT5:

StopLevel=SymbolInfoInteger(symbol,SYMBOL_TRADE_STOPS_LEVEL)*Point;
always return StopLevel==0.002


So while in MT4 it places two orders:

OP_BUYSTOP and OP_SELLSTOP because the condition Entry>StopLevel is verified for both of them (beeing StopLevel==0 in back testing mode),
in the MT5 the Condition is verfied only for OP_SELLSTOP because StopLevel==0.002 (in back testing mode) and so the condition is valid only for OP_SELLSTOP in this datetime.

Why this difference in the two platform for the same broker?

Is this behaviour correct?

Do I Translate correctly
StopLevel=MarketInfo(Symbol(),MODE_STOPLEVEL)*Point;

with

StopLevel=SymbolInfoInteger(symbol,SYMBOL_TRADE_STOPS_LEVEL)*Point; ?

Tanks in advance
All files in topic