@biztet May you share your current project state?
Posts made by trader.philipps
-
RE: EA with object on the chartposted in Questions & Answers
-
RE: Fuzzy and Illogicalposted in Bug Reports
@pan4pips said in Fuzzy and Illogical:
DPA
Well, I meant in order to understand why those marked points are missed, it would be easier to have the current project state and indicators in order to find a solution.
-
RE: One volumes constant in all casesposted in Questions & Answers
@khalids222 Didn't get what you want to achieve. If start lot is 0.10 lots, all trades should have 0.10 lot size??
-
RE: Trade Created Block v/s Pending Order Triggeredposted in Questions & Answers
@bluemoon Well, I don't have a simple solution. You might need to count the open trades and orders per tick. Then, when a trade is created, you check again if the number of open orders changed (1 less). If that is the case, you might assume that one of your open orders were executed.
However, if you have other order create, delete or expiry actions, you might need to update the count what makes it not 100% proof.
There might be also a way by introducing groups, especially if an open order has a relation to the action that should take place, when an order gets triggered. -
RE: EA Programmerposted in General Discussions
@claudiovision Did you check my Tutorial EA? The MM section is implemented already there. And I also described how to use that as a template.
-
RE: How can I add a specific level to the moving average at fxdreema ?posted in Questions & Answers
@roar said in How can I add a specific level to the moving average at fxdreema ?:
@khalids222 You want to check if candle crosses 10-MA?
Don't use candle body size, or candle total size.
Those are sizes, not levels.If you want to take action when a candle touches moving average, a solution is to use two conditions:
if candle open > MA, then
if candle close < MA
-> take actionanother case:
if candle open < MA, then
if candle close > MA
-> take actionJust for my interest, doesn't do x> or x< do the same? If you compare on candle cross per candle, you'd probably miss crosses with gaps. For instance candle ID2 close was below MA and candle ID 1 open was above.
-
RE: Fuzzy and Illogicalposted in Bug Reports
@pan4pips Is it possible to share your project and custom indicator(s)?
-
RE: Tutorial Expert Advisor with some recent issues solvedposted in Tutorials by Users
@alphaomega If you know hnow how to define your entry and exit conditions, you can use the template and place it inside there. Hence you'd have all the other features included. Well, at least that's the intention behind. If you need other money management for instance, of course the template may not suite well to it. This one is for 1 trade per direction/pair with risk %.
-
RE: Next candle?posted in Questions & Answers
@realforce Can you share your project and mayby your custom indicator? Would be easier.
-
RE: MULTIPLE CHARTSposted in Questions & Answers
@l-andorrà said in MULTIPLE CHARTS:
You can use this block on top of all your project:

There you will have to manually write all symbols you want comma separated. That should do the work on real and backtesting for MT5, but only for real on MT4.
You might set this string by a variable automaticaly for instance on the on Init tab. Here an example. I defined the string variable "ListSymbols" in fxdreema before.

Here the code for copying ...
//
int HowManySymbols=SymbolsTotal(true);
ListSymbols="";
for(int i=0;i<HowManySymbols;i++)
{
ListSymbols=StringConcatenate(ListSymbols,SymbolName(i,true),",");
};
// -
RE: Next candle?posted in Questions & Answers
@realforce Does Our indicator offer a buffer for the arrow appearance? In that case use the indicator appears block with candle ID 2 and next block bullish/bearish candle with candle id1.
-
RE: Manual Trailing stop lossposted in Questions & Answers
@salahuddinonline Do you have a project to start with?
-
RE: Help pleaseposted in General Discussions
@l-andorrà And per 1 tick .. that is really a strange strategy !?!
-
RE: Hidden/Stealth Stop lossposted in Questions & Answers
@jzfusion In Tutoriak EA I use those settings ..

This means, if a stop for instacnce is 10 pips away from openeing price, the real stop (enmergency) would be 20 pips.
So in total you have 2 options:
- A multuplied value of virtual stop
- A fixed amount of pips
If you use virtual stoops, you may have to consider some functions such as if last trade was closed by SL for instance. I think that won't work with virtual stops as the trade was not closed by SL but by EA. But I haven't tried it yet.
-
RE: Reading Text on Main Chartposted in Questions & Answers
@pan4pips Are you sure that the prefix is DPA?
Did you check the objects <CTRL>-b your indicator creates? -
RE: Tutorial Expert Advisor with some recent issues solvedposted in Tutorials by Users
@kop Okay, you could take the mq4 file and import it into a new project. In that way you may use the EA and adjust it to your needs.
Assuming that you want to define your own entry and exit conditions, you may delete the parts marked in the screenshot and place your own strategy there.
On entry conditions you may keep the flags for switching on/of buy or sell. -
RE: pls helpposted in Questions & Answers
@kop Check my tutorial EA (simplified) I uploaded yesterday.

I'm using flags for this.
(1) Check flag block checking if BUYenabled flag is true
(2) Set flag block sets flag BUYenabled to true - it is called when (1) was false and condition to re-enable is true.
(3) Set flag block sets flag BUYenabled to false - after openeing of an order, there are no Buys allowed until the BUYenabled is set to true in (2) -
RE: How can I set a stop loss based on ATR%posted in Questions & Answers
@roar In my Tutorial EA I calculate the ATR value from the time the trade was opened (candle ID:1 at that time). Like this it is a constant for the trade.

vdATR is the price fraction and viATRPips calculate that price fraction in Pips as somehow that works more reliable with the trailing I observed.
-
RE: News time filterposted in Questions & Answers
@fabien-s But icefx NewsInfo is a beast. And from time to time it just seem to skip some parameters and starts deactivating autotrade leading your account into extreme danger. hence I cannot recommand using it at the moment.