Hi there!
Is there any way to import fxDreema satellite functions (_candles, _fResults, etc... ) in my custom blocks??
Thanks!
Hi there!
Is there any way to import fxDreema satellite functions (_candles, _fResults, etc... ) in my custom blocks??
Thanks!
OK. Sorry. It's solved.
Yes, I'm using a custom block....the problem was a "indicator Rise/Fail" block...it was with "pass once per bar" parameter selected....that was the problem.
Thanks!
Hi, there!
I'm trying to do a Custom Loop to check an array of Moving Averages e.g.: (62,100,200,800).
I want to do a loop for check every MA under certain conditions, so, I need the program flow pass 'N' times ('N' = number of MA in array) I'm using a FOR loop, but the program only test the 62 MA... only test the first element of the array (62)...
I have seen source code of some FxDreema blocks that do similiar work, and they use FOR loop....
Can you help me? Any Ideas?
Thanks in advance.
Yes, I'm using "BreakEven Point (each trade)" block when the profit is 2:1 (profit = 2 * SL) in all trades.
I want to open new trades in the same PAIR and the same Timeframe only when the previous trade is in BE.
It's possible to check if StopLoss Price level is over (or under in SELLs) open price level or anything similar to that???
Any ideas?
Thanks in advance.
Hi there:
How can I check if a certain trade is in BreakEven??
Thanks in advance.
Yes, I saw it. But, how it works??
I need to know exact time??? (e.g: close pending order at 22:30:00)
Or can I use N minutes or N hours to close pending order?? (e.g: close pending order at 115 minutes from open time).
I want to close pending orders after N candles, e.g:
TIMEFRAME: 15M
Number of candles to close pending order: 5 candles
15 minutes X 5 candles = 75 minutes...
Can I set 75 minutes in the specified field in my pending orders??
Or I need to calculate the exact closing clock time?? e.g:
pending order put on the chart at 13:30:00 GMT + 75 minutes = 14:45:00 GMT....
Thanks in advance.
Hi, there!
I was thinking about how to close pending orders (order not open yet, only pending orders waiting price level hits the open price) after 'n' bars...in his current timeframe and current pair...
it's possible?? I want to close pending orders if they aren't open after 'n' bars or candles...
Thanks in advance.
My actions are "changing block title text"... 
...I'm trying to reproduce problems in a small new project, but no luck... Maybe it's a problem in big projects.... 
I'll try to detect the problem in future projects....
Thanks
mmmm...can you check CONDITION BLOCK??? I think this block is the most problematic...
I have a hundred (more or less) of blocks in my projects...is it problematic??? OR it's a local version problem???
Thanks.
mmm...Saving block title works in a random way... I think.
Sometimes you can save new block title text, and sometimes the old title reappears... sometimes the new block title text is saved... I'm using the "click in block again" method to save block title...
It's very frustrating... 
Hi there!
It's possible to add a "Save As..." option to save a project with other name???
I'd like to make a Project ("Project A"), and if I want to add or delete some modifications and then save as: "Project A v1.1", for example...
Is this possible now?? How???
Thanks in advance.
I don't know... 
Other problem with #includes....if I have 2 Fxdreema blocks importing MQL4 Standard Library files in the fxdreema "Global Variables, Includes" area, only one MQH file is imported in Fxdreema generated code...
Fxdreema Block 1 (block put in OnTick fxdreema area):
#include <Arrays\ArrayString.mqh>
Fxdreema Block 2 (block put in OnInit fxdreema area):
#include <Controls\Dialog.mqh>
Only the second one is included on fxdreema MQL4 generated code.
Hi:
I think that "undeclared identifier" MetaEditor error can be solved rewriting variables "tt, ask, bid" declaration, like this:

Putting the variables declaration out of the IF code block:

I don't know if you can get side effects in this change....
, but no compiler errors are shown.
mmmm the second file "MiVentana.mqh" isn't being uploaded....I try again with code marker:
//+------------------------------------------------------------------+
//| MiVentana.mqh |
//| Copyright 2014, MetaQuotes Software Corp. |
//| http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link "http://www.mql5.com"
#property version "1.00"
#property strict
#include <Controls\Dialog.mqh>
// #include <Controls\Panel.mqh>
#include <Controls\ComboBox.mqh>
#include <Controls\Label.mqh>
#define X_START 0
#define Y_START 0
#define X_SIZE 280
#define Y_SIZE 300
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
class MiVentana : public CAppDialog
{
private:
CComboBox m_combo_box;
//--- labels
CLabel m_label;
//--- current value of the array type from the combo box
int m_combo_box_value;
public:
MiVentana();
~MiVentana();
virtual bool Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2);
//--- handler of chart events
virtual bool OnEvent(const int id,const long &lparam,const double &dparam,const string &sparam);
protected:
//--- create labels
// bool CreateLabel(CLabel &lbl,const string name,const int x,const int y,const string str,const int font_size,const int clr);
virtual bool CreateComboBox(void);
virtual void OnChangeComboBox(void);
};
//+------------------------------------------------------------------+
//| Handling events |
//+------------------------------------------------------------------+
EVENT_MAP_BEGIN(MiVentana)
/*
ON_EVENT(ON_CLICK,m_button_add,OnClickButtonAdd)
ON_EVENT(ON_CLICK,m_button_free,OnClickButtonFree)
*/
ON_EVENT(ON_CHANGE,m_combo_box,OnChangeComboBox)
EVENT_MAP_END(CAppDialog)
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
MiVentana::MiVentana()
{
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
MiVentana::~MiVentana()
{
}
//+------------------------------------------------------------------+
bool MiVentana::Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2)
{
//--- calling the method of the parent class
if(!CAppDialog::Create(chart,name,subwin,x1,y1,x2,y2))
return(false);
//--- create labels
// if(!CreateLabel(m_label,"Estrategias",X_START+10,Y_START+5,str_physical,12,clrBlack))
// return(false);
//--- create control elements
if(!CreateComboBox())
return(false);
//--- success
return(true);
}
//+------------------------------------------------------------------+
//| Create a combo box |
//+------------------------------------------------------------------+
bool MiVentana::CreateComboBox(void)
{
//--- create the combo box
if(!m_combo_box.Create(m_chart_id,"type_combobox",m_subwin,X_START+100,Y_START+110,X_START+200,Y_START+230))
{
Alert("problema creando el combo");
Alert(IntegerToString(GetLastError()));
return(false);
}
//--- add elements to the combo box
if(!m_combo_box.ItemAdd("PiratePips",0))
{
Alert("problema creando el primer item del combo");
return(false);
}
if(!m_combo_box.ItemAdd("PiratePips with ATR Projectios",1))
{
Alert("problema creando el segundo item del combo");
return(false);
}
//--- store the current combo box element
m_combo_box_value=0;
//--- add the combo box to control elements
if(!Add(m_combo_box))
{
Alert("problema aรฑadiendo el combo a la ventana");
return(false);
}
//--- successful execution
return(true);
}
//+------------------------------------------------------------------+
//| Handler of the combo box change event |
//+------------------------------------------------------------------+
void MiVentana::OnChangeComboBox(void)
{
//--- check if the array's type has changed
if(m_combo_box.Value()!=m_combo_box_value)
{
//--- work with another array type
m_combo_box_value=(int)m_combo_box.Value();
}
}
Attached 2 MQL4 Files, the last one, and the include file that i think it's doing fxdreema code errors.
Thanks.
......
PirateAlarm.mq4
Ok. With MetaEditor I can compile, so It's not a critical bug.
I have another error with fxdreema code generated. It's only when I #include a custom class that work with graphical components (Dialog.mqh, ComboBox.mqh, etc...). This is the error in the fxdreema code:
......
error_metaeditor.png
The same errors are shown with a new fxdreema project with no blocks... 
thanks.
Ok. MQL4 file attached.
......
PirateAlarm.mq4
__I don't remember why I decided to add " = 0;" to global variables that does not have value, but I think now with the new MQL4 there will not be a problem for those variables to not have value.
Reuploaded again with this thing fixed.
[/quote:3peifwp5]
Thanks!
__
More details about the last error? Maybe some link to a file to be included does not exists?
Does MetaEditor reports the same errors?[/quote:3peifwp5]
In MetaEditor works fine. I test 2 EA and same errors are shown. I change to other computer and I think the error is about "Program Files/MetaTrader" or anything in that way.... This error is with new rebuilds uploaded, maybe. 
......
error_fxdreema.jpg