was something in journal, message or info why it was stopped?
Posts made by miro1360
-
RE: EA malfunctionposted in Questions & Answers
-
RE: Modify stoploss, not takeprofitposted in Questions & Answers
use loop For-each-trade with modify
-
RE: Place line at Highest open and Lowest open?posted in Questions & Answers
into block you can set candle number from where you will read these values
-
RE: mark past MA crossoversposted in Questions & Answers
it is possible with fxdreema, but first you need learn working with fxdreema on easier way to understand logic
-
RE: Apply indicatorposted in Questions & Answers
I dont think this is possible, or I have not seen it yet, but it is possible to make "something" on chart, where you type values and indicator and EA will read this values from same place - for this you need rebuild indicator code -- great for fully worked system, bad idea for tested system because it is not easiest for time

-
RE: Manage tradeposted in Questions & Answers
set in your EA Magic nr to 0 and your EA can manage manually opened trades
-
RE: Backtesting with time filters does not workposted in Bug Reports
better if you post here what exactly is not working, because from my experience it is working fine, post here exactly how you tried it and what was not working
-
RE: 5 digit brokers are realposted in Bug Reports
what about play with settings in:
Options - This Project - Project Options - "Point format rules"?

-
RE: MTF Backtesting on MT4 StrategyTesterposted in Questions & Answers
properly made indicator can handle this way, fxdreema work with indicator buffers, you can read from multiple timeframes (M1,M5,M15,etc.) and from multiple pairs like (M5 EURUSD + M15 GBPJPY, etc.), but take into heed, that tester is not very accurate and if you will test multiple tfs and multiple pairs, you need to count with bigger flaw in testing result
be sure to have downloaded enough history data from all tested tfs and pairs before testing
in MT4 tester you can not open trades in multiple pairs (like EURUSD+GBPJPY at one time) but you can read data from multiple tfs and multiple pairs and open trade only on pair selected in tester window
in MT5 you can do all this + opening trades in multiple pairs, but dont forget that MT5 is primary working in "nonHedge" mode (more with google), secondary is working in hedge mode (depends on account type) but you need make a lot of things into EA manually when you will working in hedge mode (hedge account type), so once again, be careful on this
hope this was enough helping for you
-
RE: How to add pips to a price level for both JPY and non-JPY prices?posted in Questions & Answers
you can use fxdreema function in adjust field:
- PipValue(Symbol())
or adjust with MQL4 function: - MarketInfo(Symbol(), MODE_POINT)) (but here you need know if you are quoted in 5 digits or 4 (3 or 2))

or MarketInfo(Symbol(), MODE_TICKSIZE) ... I am not sure now what will be better, you can try both

- PipValue(Symbol())
-
RE: Slippage featuresposted in Questions & Answers
yes, this can be problem with real ecn brokers (real is even discutable :D)
have your broker this option? Enable maximum deviation from quoted price (I think it works only with instant order, with market order(ECN) it is not working - because you become warning that order will be executed with market conditions and there can be significantly difference between prices)
fxdreema make EA in sending orders with slippage option (function OrderSend()), so I mean (in my opinion) all depends on your broker, when he rejects order because slippage difference - I think it make nonECN broker with instant orders, but ECN broker with market orders accept your order and open it at market conditions directly (guaranted opening but on not guaranted prices)
there was hard safe method how to avoid this problem with market conditionsonTick section:
old_Ask = x_Ask;
x_Ask = Ask;
if (MathAbs(old_Ask - x_Ask) < (my_slippage * PipValue(symbol)) EA_can_Trade = true;
x_Ask = MarketInfo(symbol,MODE_ASK);
// PipValue() is function from fxdreema, instead you can use MarketInfo(Symbol(), MODE_POINT)) but you need know if you broker is quoting pairs standard with 4 or 5 digits (2 or 3)if difference between x_Ask and old_Ask is more than your slippage then it looks better not to trying place the trade
you can play with 8-)
-
RE: Unconventional Grid (Hedge or Trades Nearby)posted in Questions & Answers
If I look on logic:
-
check profit >= TPAll ...
next blocks run only when this condition is true, now it depends on your opened trades and in case how you open trades
if your opened trades are +10, -10 & +10 and you have only these 3 trades and not more (depends on filter in 1. check profit), your TPAll=10, open trades profit = 10,
first block pass, so now we go to 2. and 3. block -
-
save profit from last 3 closed trades (say it was +10) into TPAll_Variable=TPAll-(+10) = 0
check profit >= 10
conditions meet and we close with blocks 5. and 6.
....
back to blocks 2. + 3. with scenario
save profit from last 3 closed trades (say it was -50) into TPAll_Variable=TPAll-(-50) = +60
now your profit from open trades needs be > +60
check profit >= +60
when it is true, closing is in action....
back to blocks 2. + 3. with scenario
save profit from last 3 closed trades (say it was +50) into TPAll_Variable=TPAll-(+50) = -40
now your profit from open trades can be in loss to meet condition
check profit >= -40
when it is true, closign is in action - but when your actual profit from open trades is in loss - first condition is false and next conditions does not run because first is false (when TPAll=10)is this logic correct?
(I think, you mean another Miro, I am registered on that site with same nick, but nothing posted)
-
-
RE: Check last position...posted in Questions & Answers
when you trade only one pair with EA and you need test it with tester, I suggest you for now stay with MT4
MT5 in hedge can work but you need code a lot of things manually, after this you need broker which allow you trade in "hedge" mode, otherwise you need remake your EA into MT4 and again test it
-
RE: Slippage featuresposted in Questions & Answers
you can save ask/bid price into variableA before block for opening trade, and into variableB save price opened trade (after opening block), you make difference into variableC = variableA-variableB in pips and variableC is now something you are requested.
-
RE: Unconventional Grid (Hedge or Trades Nearby)posted in Questions & Answers
are you trying to open trades into grid - opening against trend and wait for trend-turn into opposite direction and when it happens, close most lossable trade using profit from bucket of already profit trades?
-
RE: i want protect my code in EA.ex4 how i do that ?posted in Questions & Answers
- you can use newest MT4 compiler
- you can give important logic manually into DLL (but a lot of people will not DLLs because of security reasons)
- you can use signal service
......

-
RE: CHECK LAST CLOSED TRADESposted in Questions & Answers
try it this way, not easiest, but can work

https://ctrlv.cz/shots/2016/07/03/XB8e.png -
RE: How to separate the last 2 real digitsposted in Questions & Answers
or you can play with strings, like:
double Price1 = 1.12345; string PrepareX=StringSubstr(DoubleToStr(Price1,4),5,2); double PriceX = StrToDouble(PrepareX); // PriceX value is "34" // beware of probably change position in StringSubstr when pairs are like 96.1234, 10000.1, etc. -
RE: Heavy EA in backtestingposted in Questions & Answers
you was right to put into "on tick", and if it is slow, it is because on every tick runs all your blocks in "on tick" event, if you will speed up it in tester, you can try you conditions with candle ID[1 and >1] runs with block "once per bar"
