The problem is as you said brokers, and assets have different values. FX can only get this from running trades/orders, I put this together that places an order retrieves the value then deletes the order, not ideal but should work. On backtest it didn't work, test it on a live account and see what it does, it should update if the chart symbol is changed: https://fxdreema.com/shared/RAgL4J6Pb
Posts made by jstap
-
RE: Adjusting TP to Include Commission in a Manual Trading Botposted in Questions & Answers
-
RE: good morning. How can I set a maximum fixed limit for losses and gains on the day?posted in Questions & Answers
@dancont2025 You are welcome, let me know if you need help elsewhere
-
RE: MT5 Timeframesposted in Tutorials by Users
@Vortrexcian use that variable in a condition block, TFM != 5 - text block
-
RE: MT5 Timeframesposted in Tutorials by Users
@Vortrexcian @AlirezaTrade You are welcome, glad it was useful
-
MT5 Timeframesposted in Tutorials by Users
On MT5 the time frame returned is often a large number not the minutes. This is a way to return the minutes into a variable:
https://fxdreema.com/shared/rCOJx10Bb -
RE: good morning. How can I set a maximum fixed limit for losses and gains on the day?posted in Questions & Answers
You could do something like this: https://fxdreema.com/shared/X2heVLCH
You could remove the % part and just use a fixed value -
RE: How to tell the expert not to open more than three trades in one dayposted in Questions & Answers
Various ways, explain more on what you want to do
-
RE: Are variables sticky upon Terminal restart?posted in Questions & Answers
EA will run on all computers, to prevent this you will need to add the terminal MT licence number to i condition login =! 0000000 - terminate
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
No mate that is your full project, I am talking about a test project to check sections, limit this to 1 problem, then sort the next, and then add them together to complete your project.
-
RE: my account is micro (cent account) not open tradesposted in Questions & Answers
@jacky101 That's good, what's the smallest lot size you used?
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
Add your link and I'll see if I can see the problem
-
RE: Coding Problem?? or FXDreema bug??posted in Questions & Answers
Not sure what is creating any writing, strip this back and create smaller test projects, then what's wrong can be seen more easily, and by process of elimination, you remove anything that's causing the problems. You can then upload it so someone can help with 1 specific problem at a time.
-
RE: How to make multiple indicators in the same direction, order or mark with arrowsposted in Questions & Answers
Add a shared link to show what you have done so far
-
RE: Daily, weekly and monthly profit and loss limitsposted in Questions & Answers
This should do it change the time value to month() to create the same looking at the month timeframe:
-
RE: my account is micro (cent account) not open tradesposted in Questions & Answers
Need to add a shared link to see where any problems might be. FX doesn't work with lot sizes smaller than 0.01
-
RE: about PROJECT_IDposted in Questions & Answers
You can only get source code by giving the source code, or an FX-shared link (even then would likely need a full account)
-
RE: Button on click not workingposted in Questions & Answers
You do know on chart events don't work in backtest?
-
RE: Help with Candle ID.posted in Questions & Answers
This looks like it will do that unless the indicator repaints...
