What is the best way to find out what is value of each pip in base currency? I was not able to find anything in the "Market Properties"
Posts made by BlueMoon
-
Value of each pip on standard lot in base currencyposted in Questions & Answers
-
RE: Check Unrealized Profit Blockposted in Questions & Answers
Thanks for your reply. Can you please give an example of using the "bucket of trade" to derive unrealized profit of trades?
-
Check Unrealized Profit Blockposted in Questions & Answers
I have the following question about the functioning of the attached block:
-
Will the following block check for negative value for the "Profit Amount? I mean I want to check the unrealized loss of bunch of open trades. I want to check of the loss is greater than $100. For that can i put "-100" in the profit amount field?
-
Will the Profit amount get stored in the variable "ABC" in my following example on execution of this block? since I am entering the value "P10" here.

-
-
RE: Dynamic Varaibleposted in Questions & Answers
I figured this can be very easily done using custom code. I have come so far. Can you please help me with the right syntax for this? What do I write in this code instead of $Market for this to work? I basically need the variable name to be passed by the previous block

-
Dynamic Varaibleposted in Questions & Answers
I need variables in my blocks that I can't define while creating the EA. Basically my variables are dynamic.
e.g.
I have an EA for which the user will provide a list of all currency pairs that he wants to trade. I would like to create a double type variable for each of these values provided by the user. My EA will then assign value to these variables through blocks and use it when required. -
RE: Trailing Stop (for group of trades)posted in Questions & Answers
@roar said in Trailing Stop (for group of trades):
Hmm.. If your trades have different lot sizes, measuring the total profit as pips becomes difficult.
Maybe just close the trades based on account equity, or account profit?This could help you:
https://fxdreema.com/forum/topic/4858/total-profit-reduces-by-x-then-close-everything/2?page=1Thank you very much for your help but this will not help me. Since I have many more trades open at the same time which affects my equity.
Isn't there any other way to find out current profit in pips for certain group of trade on every tick and trail the stop for it as a group?
-
Trailing Stop (for group of trades)posted in Questions & Answers
This block is not giving me the result I am expecting it. Here is an example of what I am expecting it to do. Can someone please help me to achieve this:
I would have multiple open trades with different lot sizes. Some may be profiting and some may be in loss. I want to set SL for all these trades as a group. I mean I would like all of them to close once they reach a total profit of lets say 100 pips. I want their SL to be set accordingly. Is this possible with the Trailing Stop (for group of trades) block? Seems complicated since I believe in order for all of them to close at a certain point, technically we may be setting SL for some and TP for some.
Can someone please throw some light on this and proper use of this block? Also help me for what I am trying to achive?
-
Trailing Stop to start trailing based on ATRposted in Questions & Answers
I want to set Trailing Stop for all my existing trades (they were either opened using EA or manual) of different currency pairs.
I want start trailing SL once my trades have reached certain profit. The certain profit is 50% of the 4 hour chart ATR 25 value. I am trying to use the following block but I am not getting the desired results.
I also wonder do I need to enter the value for "Market" in the "Trailing Start section" Will it get the value of the Market depending which open trade it is trying to set the trailing for? Also I need to divide the value of the ATR result by the "Point" value for that Market to get the actual Pips of the ATR. How and where do I do this?

-
What is the difference between these 2 blocks?posted in Questions & Answers
What is the difference between these 2 blocks?
Can you give an example for both the usage?
-
Why is my trailing stop not working?posted in Questions & Answers
I do have several open trades which are making more than 10 pips profit. I have placed the following block in the "On Tick" event. Based on this block, I should see the "Stop Loss" being set for my open trades.

-
Trailing stop for all existing trades on conditionposted in Questions & Answers
What is the best way to achieve the following:
I have many trades open. Some using EA, some manually opened. I would like to trail Stop loss with the following condition and with the following method:
Condition:
Apply trailing SL only if the trade has reached profit of 50 pips.Trailing Method:
Once my trade has reached 50 pips profit, the SL should be set to 10% less which is 45 pips in this case. Keep trailing this on every 1 pip price movement in my favor. I mean if the trade is now making 51 pips profit...then the SL should be set to 10% less which is at 5.1pip, which is at 45.9 pip....and so on........ -
RE: Best way to get pips from ATRposted in Questions & Answers
@miro1360 Where can I get a list of all the function that fxDreema has? Can I also open these functions in fxDreema studio to read the code and modify them as per my need?
-
RE: Is there a search function in the forum?posted in Questions & Answers
@miro1360 said in Is there a search function in the forum?:
I think here is ...

Thank you so much micro1360!!!
I can see it now!
I suggest fxDreema to make it different color for others who might not see just like me. Following is how I see it.

-
RE: Best way to get pips from ATRposted in Questions & Answers
@miro1360 said in Best way to get pips from ATR:
hm ... try this:
https://fxdreema.com/shared/ENYOaDiC

what is the toPips() function? Where is this defined? Is this inbuild MT4 function? Can you point me to where I can read about all that this function is doing?
-
Is there a search function in the forum?posted in Questions & Answers
I rather search on a topic before I post my question on the forum? I didn't find any search option here. Is there one available?
-
Best way to get pips from ATRposted in Questions & Answers
What is the best way to get pips from ATR? I am having issues doing it since some currency pairs need to be multiplies by x100 and others need x10000. I believe this will also change depending the broker.
How can I get the pip value from ATR irrespective of currency pair or broker I am using?
-
RE: Smoothed Moving Averageposted in Questions & Answers
@miro1360 said in Smoothed Moving Average:
actually it is working fine, look here for details in my drawing:

CandleID 3 is not true with condition but CandleID 2 is true with condition and trade was opened when CandleID 2 was CandleID 1 (lool mixed explanation
) ... but it is working right ... MA cross hapened after big bullish candle closed (and you toke trades when candle closes (from ID 1) ) ... so I think, it is working fineYou are awesome Miro1360!!!! I am not happy that my strategy is not going to be profitable! but I am very joyful that we cracked the problem out. Thank you very much for the diagram and the explanation. This is 100% clear to me and I am in agreement with you about this.
What I learned here is that you do not have to look at the space between the 2 candles to find out if the EMA is above or below each other. But you have to look at the center of the candle itself! Thanks again for the explanation. I am your fan now!!
-
RE: Smoothed Moving Averageposted in Questions & Answers
it still does not seem to work.

See the screenshot below. You see the red 5MA is above 8MA right after Candle(3) but the EA did not take the "Buy" trade. The EA took the "Buy" trade after the bigger candle(2) You can also see the dotted green line that shows my buy trade.Had it taken the buy trade where its supposed to the trade would be in profit, but its in loss right now!
What do you think?

-
RE: Smoothed Moving Averageposted in Questions & Answers
@miro1360 said in Smoothed Moving Average:
not sure yet if it does some different results, if it does, than we can compare

I was thinking could it be that the Smoothed MA could be dynamic rather than static?
What I mean is at a point in time the 5MA could be greater than 8MA...but depending on future candles...that point in times value may change. Is that possible?If that is the case, it might explain the behavior I am seeing. When I look at the chart I am seeing the future of when the decision was made based on 5MA being higher or lower than 8MA. But after that decision was made by the EA, there might be sudden price movements that might show me the 5MA and 8MA lines a bit different when I look at it at my time as compared to what it maybe at the time of decision made by the EA.
Let me know your thoughts?
-
RE: Smoothed Moving Averageposted in Questions & Answers
@miro1360 said in Smoothed Moving Average:
try if this is working right ...
https://fxdreema.com/shared/ZXCuCOX1dI first wanted to thank you very much for taking the time and effort for helping me out.
I will sure try what you are suggesting. I still am very curious to ask..what is the difference in what you are suggesting as compared to what I am doing? It looks to me like it will yield the same result. I am curious to know where you think is the problem in what I am doing and why would this work like I want it to work?
I am sure going to try to out and update here in few hours.
Thanks a lot again!