Maybe you need a Script. I can suggest the block named "Set Current Market for next blocks" and then Buy now/Sell now
Posts made by fxDreema
-
RE: I NEED THE BOT TO OPEN ONLY ONE TRADE AT A TIME FOR EACH PAIposted in Questions & Answers
-
RE: Absolute valute, best wayposted in Questions & Answers
In the adjust field for the negative value add this: *-1. If there are problems with this, do it like this: *(-1)
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
You can see my idea, or what I believed that you want to do: viewtopic.php?p=8897#p8897
When it comes to pips... I don't know really. To be honest, I am pretty bad at mathematics, so my mind automatically rejects to put pips and lot size in the same formula
Pips = some price distance, Lot size = money amount. There is a parameter that connects those two worlds (how much money for 1 pip at a given lot size), but it's value can be always different, depending on the currency, the current price and the deposit currency. So, my suggestion will be to work only with the money values - lot size, profit (in money), balance, equity and so on. -
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Are you sure about the formula you want to use? You are asking why values are so big. Maybe because it's just the way it is using this calculation. You have Pips/Lots, so let's make some examples here:
50 pips, 0.1 lots => 50/0.1 = 500
10 pips, 0.01 lots => 10/0.01 = 1000For me, such a big values looks normal

-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Damn, you already have so many variables

Profit as pips? -
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
Real Lot Size * Profit / New Lot Size
so if you have a profit of 10 from a trade with 0.2 lots, this is the same as profit of 20 from 0.1 lots.
As a code (to not use Formula block), this will be:
OrderLots() * OrderProfit() / 0.1or...
OrderLots() * (OrderProfit()+OrderCommission()+OrderSwap()) / 0.1and 0.1 can be some Variable as well
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
I don't really know what you are trying to do. Maybe you just need the value of Ask-OpenPrice or OpenPrice-Bid?
-
RE: How to generate a scriptposted in Questions & Answers
Inputs for the EA? Check this: https://fxdreema.com/demo/mt4-constants
-
RE: self updating/refreshing grid, compare two groups of tradesposted in Questions & Answers
You can connect multiple "pips away..." blocks like this: http://prntscr.com/6t8ctk The first block is the longest distance. This makes "if... else if... else" logic. And yes, it looks ugly, so I'm gonna write a new task to my to do list to make it somehow easier

-
RE: "Cross- width" What does it meanposted in Questions & Answers
Look at the bottom here:
https://fxdreema.com/documentation/proj ... er%20worksNormally the crossover works for 2 neighbour candles, this makes it possible to work with 2 candles far away from each other, but all the candles in between are not considered. This is something that I added long time ago, but now I am not proud of

-
RE: How to generate a scriptposted in Questions & Answers
Projects -> New project. Select Script here. Work only under "on Start"

To delete all pending orders this should be enough: Pass -> Delete pending orders
-
RE: Has anyone actually written an EA with this program??posted in Questions & Answers
Right-click on a block = Context menu for Copy/Paste and other like this
Double-click on a block = Open the window with it's settings. There is one extra window that appears only when you have at least one Variable definedIf something does not work, it's probably because of the browser, but all modern browsers should work. Please, don't try it on some old IE... even I don't know what will be the outcome.
Firefox and Chrome works fine. I noticed some problem with the scroller in the blocks list on Chrome. I normally use Firefox because of the "Connector" plugin that makes it possible to write output files directly into the output folders. There was similar plugin for Chrome as well, but it was built on old technology and they removed that, so now it's not working and I need to find some other way.
Also, there is a desktop version that has it's own Chrome and works totally offline. It is the same thing, but wrapped into .exe file.
-
RE: Seek helpposted in Questions & Answers
These examples are also basic. The first one has 2 blocks and shows how to place a single trade at a time. The second example shows how to create one trade per bar. The third one explains events. Then there are some that shows what is wrong to do. And when you try them all, you are done

-
RE: How to open a trade only when there has been candle closeposted in Questions & Answers
For the indicator settings, use Candle ID = 1. This is somewhere in "More settings". Candle with ID 1 is the previous finished candle. Well, for some indicators it is not finished, some of them repaint even in the past few candles, but anyway
-
RE: Backtest Signalgeneratorposted in Questions & Answers
Mmmm... what?
Each "Draw..." blocks can draw one new object when you run it, or it can update existing one. If you want to draw objects in the past candles similar to indicators, then I can only say that this is hard to do in EA and this job is for a custom indicator. But unfortunately fxDreema cannot create custom indicators

-
RE: Seek helpposted in Questions & Answers
It's all english here, but I'm not native, so...
You can find some examples here: https://fxdreema.com/examples
-
RE: Skip the first signalposted in Questions & Answers
Now I don't have this indicator for some reason.
But if there are no trades created from an EA, this is one of the easiest problems to discover:- Check for errors in the logs. If no errors => the problem is somewhere in the conditions and filters, which lead us to 2.
- Check conditions and filters. You don't know if a block passes or not? Connect some "Draw Arrow" on it's output. Or every other block that gives us some visual information - Print, Comment, Draw...
-
RE: First Candle of the dayposted in Questions & Answers
This can help http://prntscr.com/6scff8
Of course, it depends which timeframe you prefer, but this can be set as well.