Can someone please help?
Posts made by BlueMoon
-
RE: Delete existing Pending Orders when Trade openedposted in Questions & Answers
-
RE: Delete existing Pending Orders when Trade openedposted in Questions & Answers
My sequence of events are as follows:
My EA will create a Sell Pending Order and a Buy Pending Order.
If my Sell Pending Order gets triggered, I want the Buy Pending Order to be deleted and vice versa.How do I achieve this?
-
Delete existing Pending Orders when Trade openedposted in Questions & Answers
I want all Pending Orders of "XXXYYY" currency pair to be deleted when a new trade is opened for the "XXXYYY" pair.
The XXXYYY pair is not unknown at the time of building the EA.
-
RE: Modify Stops of Trades Blockposted in Questions & Answers
Thanks. That works! I wonder why the "Modify Stops of Trades"
block does not have "No change" option. -
Modify Stops of Trades Blockposted in Questions & Answers
I want to remove the "Take Profit" but I do not want to change anything for "Stop Loss" and vice versa. It seems like it is updating both. How can I just update 1 but not the other
-
Add values of string and double variables?posted in Questions & Answers
I have the following 2 variables. How do I add value of them to generate another string variable?
Double abc 3.4467
Srting xyz "hello"I want to add the xyz + abc to produce a string variable with value "hello 3.4467"
-
Timeframe as inputposted in Questions & Answers
Is it possible? I tried this but it seems to be not working.
-
Can I import .mq4 files?posted in Questions & Answers
If I get hold of existing EA written by someone else...can I import it into fxdreema to make changes to it?
-
RE: Draw an arrow above and Below Candlesposted in Questions & Answers
Thank You. I will look it up.
But this would be still be an EA or a script. Is there anyway to make it into an indicator? -
RE: Draw an arrow above and Below Candlesposted in Questions & Answers
Thanks for your reply. How do I do it in an EA. Also how do I change it to an indicator? I believe I can't build Indicators using fxDreema. Please let me know
-
Draw an arrow above and Below Candlesposted in Questions & Answers
Can someone please help me how to do this? I want to a Red arrow pointing down above every Bull candle whose body is greater than 50pips and a Green Arrow point up below every Bear candle whose body is greater than 50 pips. I want all this for last 200 candles.
-
RE: Notification options without MT4 installed on my phoneposted in Questions & Answers
bump!
Was hoping to get some help on this -
Notification options without MT4 installed on my phoneposted in Questions & Answers
I would like to receive notifications on my phone without installing MT4 on it. What are my options to do this?
I was wondering if any of the following was possible?
- SMS (text) message
- Email message.
- Whatsapp message
-
How to obtain factorial of a variable?posted in Questions & Answers
I would like to get factorial of my variables? Can you help me find this?
Example:
If my variable had values 2,52 = 2 X 1
5 = 5 X 4 X 3 X 2 X1 = 80 -
RE: zero divide in '11872-26913.mq4' (5750,31)posted in Questions & Answers
I wanted to provide more information. I was able to debug this myself and found out exactly which line of code is throwing this error. Here is that line. Can you please help finding out what is happening here? and how I can fix this?
return(CustomPoint(symbol)/MarketInfo(symbol,MODE_POINT));
-
RE: What do these errors and warnings mean?posted in Questions & Answers
bump!
This is really time sensitive for me. -
RE: zero divide in '11872-26913.mq4' (5750,31)posted in Questions & Answers
Bump!
Really need to fix this problem. -
RE: zero divide in '11872-26913.mq4' (5750,31)posted in Questions & Answers
@fxDreema said in zero divide in '11872-26913.mq4' (5750,31):
What code do you have around this row?
I just checked the code as well around this row....Below is what I see.
double VirtualStopsDriver(string _command="", int _ti=0, double _sl=0, double _tp=0, double _slp=0, double _tpp=0)
{
if (!USE_VIRTUAL_STOPS) {return(0);} // Virtual stops are not enabled => stop herestatic ulong mem_to_ti[]; // tickets
static int mem_to[]; // timeouts
static ulong last_checked_ticket=0;static string command; command=_command;
static int ti; ti=_ti;
static double sl; sl=_sl;
static double tp; tp=_tp;
static double slp; slp=_slp;
static double tpp; tpp=_tpp;static int i; i=0;
static int ii; ii=-1;
static int size; size=0;
static int error; error=0;
static int pos;
static int total;
static string name;
static double ask, bid;
static string print; -
RE: zero divide in '11872-26913.mq4' (5750,31)posted in Questions & Answers
I do not have any custom code. Just using regular blocks.
Based on my reading and research I found out that this could be caused by me trying to divide something by 0 (zero) and since mathematically this returns "infinite", it could cause all issues. But as far as I know I don't think anywhere in my logic...I should come across diving something by "0" The 1 thing I can think of is I obtaining the "Point size" of a market and using that value. But I checked and double checked and triple checked many many ways, that it does successfully return a value which is not zero.Please help me