Add a shared link to look at, normally this has something to do with the no position block.
Posts made by jstap
-
RE: NEED HELPposted in Questions & Answers
-
RE: automatic addition of 6pips to buy tradesposted in Questions & Answers
your condition will always be true. Everything looks normal, my guess is that your broker has this as a stipulation.
-
RE: automatic addition of 6pips to buy tradesposted in Questions & Answers
Does this happen with just live trading or also while backtesting? If you add a shared link then how you have this EA set can be seen.
-
RE: How to change the trading stop lossposted in Questions & Answers
So 2 is the open/high/low/close of a candle?
-
RE: How to tell EA to stop Tradingposted in Questions & Answers
@FX-Gnosis > x.xx will work for when it's in profit, < -x.xx will work for when in a loss
-
RE: hello I'm new on fxdreema, I would like to make a simple indicatorposted in Questions & Answers
You can't create indicators on FX, but you can mimic similar with an expert adviser, practice and create what you want and then add a shared link to see any problems.
-
RE: How to change the trading stop lossposted in Questions & Answers
You don't have a K on your picture, but simply 1st decide the new point 2nd move stop to this point
-
RE: MA Crossover issuesposted in Questions & Answers
Add a shared link to see what you need to change
-
RE: How to tell EA to stop Tradingposted in Questions & Answers
check profit (period of time) will look at history trades in a set time
-
RE: How to fix trades entering not off local time?posted in Questions & Answers
Backtest uses server time, this is the time on upper left above market watch. add or subtract the hours different to your computer time and use this value in your blocks.
-
RE: How can I add a description to a Lineposted in Questions & Answers
@barsa1211 As @l-andorrà has said, it would look something like this, look in block 4 and the variable list: https://fxdreema.com/shared/tBJhynPPd
-
RE: Change color of comment blockposted in Questions & Answers
I don't know anything about the MQL website.
Yes or you could just draw text where you want it, you can change colours in the standard section
-
RE: Help with my Project Logic: EA doesn't activate any trades on mt5 backtestposted in Questions & Answers
It will probably work if you use quotation marks "EURUSD","GBPUSD"
-
RE: Trade Managerposted in Questions & Answers
Try this, I haven't tested it, AI has written the code: https://fxdreema.com/shared/BIQYITMQd
You will have to set the times but this should add replace orders back onto your platform
The next pictures and text will show you how to create on FX:
// ---- OnTick Function ----(for this is the main settings section)
{
ReopenLastDeletedOrders();
}
// ---- Global Variables and Includes ----
#include <Trade/Trade.mqh>
int PCLOSE = 10;
CTrade trade;
// ---- Custom Function Section ----
void ReopenLastDeletedOrders()
{
HistorySelect(0, TimeCurrent()); // Select all historical orders
int totalOrders = HistoryDealsTotal();
int count = 0;for (int i = totalOrders - 1; i >= 0 && count < PCLOSE; i--) { ulong ticket = HistoryDealGetTicket(i); if (ticket > 0) { int orderType = HistoryDealGetInteger(ticket, DEAL_ENTRY); double volume = HistoryDealGetDouble(ticket, DEAL_VOLUME); double price = HistoryDealGetDouble(ticket, DEAL_PRICE); double sl = HistoryDealGetDouble(ticket, DEAL_SL); double tp = HistoryDealGetDouble(ticket, DEAL_TP); string symbol = HistoryDealGetString(ticket, DEAL_SYMBOL); ENUM_ORDER_TYPE pendingType; if (orderType == ORDER_TYPE_BUY_LIMIT) pendingType = ORDER_TYPE_BUY_LIMIT; else if (orderType == ORDER_TYPE_SELL_LIMIT) pendingType = ORDER_TYPE_SELL_LIMIT; else if (orderType == ORDER_TYPE_BUY_STOP) pendingType = ORDER_TYPE_BUY_STOP; else if (orderType == ORDER_TYPE_SELL_STOP) pendingType = ORDER_TYPE_SELL_STOP; else continue; // Skip non-pending orders MqlTradeRequest request; MqlTradeResult result; ZeroMemory(request); request.action = TRADE_ACTION_PENDING; request.type = pendingType; request.symbol = symbol; request.volume = volume; request.price = price; request.sl = sl; request.tp = tp; request.deviation = 10; request.type_filling = ORDER_FILLING_IOC; request.type_time = ORDER_TIME_GTC; request.comment = "Reopened Order"; if (OrderSend(request, result)) { Print("Reopened order: ", result.order); count++; } else { Print("Failed to reopen order: ", result.comment); } } }}
To create a block click on custom then create custom block

Settings (on tick) is at the top, includes & global variables is at the bottom, custom functions is on the lower right



-
RE: Help with my Project Logic: EA doesn't activate any trades on mt5 backtestposted in Questions & Answers
Looks like it should work, what is it doing?
-
RE: Help with my Project Logic: EA doesn't activate any trades on mt5 backtestposted in Questions & Answers
Possibly, add a shared link to look at, I rarely use anything on the timer event, I would run it on tick to backtest with first.

