In here: https://fxdreema.com/shared/csrakExfe
Is how to work out if ZigZag, is on the way up or down, without having to use custom code.
Enjoy helping people work through problems
In here: https://fxdreema.com/shared/csrakExfe
Is how to work out if ZigZag, is on the way up or down, without having to use custom code.
Re: ATR value to Pips - Tutorial
Have just been looking at using ATR values for stop loss after using the above topic for information, I have worked out how to accomplish saving ATR pips into a variable for all broker symbols, the following link contains all but it is set up for a broker that has 5 zeros after the decimal for most forex pairs.
Hope people find this useful.
Recently I have seen many people asking how to have the EA to remember the values that were used before.
This link will show how to achieve this, this is for constants, but a variable can be stored in the same way, and MT5 is the same:
might not work as needed, see below
https://fxdreema.com/shared/tnu6XI6od
I had a thought that in a crash this might not work, so I added variables and set them to amend oninit
@l-andorrà Thank you, this loop is very important to me, it will allow the EA to confirm whether pair is in a place of continuation of structure or needs break of structure, confirm whether the fibo lines up with entrance candle and so the TP is in the correct place.
I take it there is no chance of fxdreema inserting another block for loop with ID?
If I knew how to code I could probably create, I cant, I have someone that can create custom indicators so could probably handle this but he has no idea of how to start.
Have been trying to print arrows using Heiken Ashi, couldn't get to work correctly, one off the values is different to the data window value, in this project I have used iCustom to get it to work: https://fxdreema.com/shared/Mnapg7Mje
@6ixpappi Use this in MT4 or MT5, it works on all assets. https://fxdreema.com/shared/bUCD0mdBb
@l-andorrà Although this is a good question when time frames are selected using the enum method the EA can optimise all, I have never used the number method except for start/finish time but if you use this as custom code I think it would work:
if((Ma_Method = 1) {Value = "MODE_SMA";}
if((Ma_Method = 2) {Value = "MODE_SMMA";}
if((Ma_Method = 3) {Value = "MODE_EMA";}
if((Ma_Method = 4) {Value = "MODE_LWMA";}
Linked below is button projects that don't use custom code, unfortunately edit fields don't work on MT5 back test, the buttons do and all works on demo/live.
There are other buttons that do nothing in this project but, they are there so a true/false bool condition can be put in a standard buy/sell tree, to start/stop trading from pressing a button.
MT4: MT4 PROJECT
MT5 (edit fields don't work on back test): MT5 PROJECT
I do agree with this, times are constantly changing so FX should move with them. I will also add this:
Custom Indicator Integration: (This can be done already)
Strategy Optimizer: (I would say MetaTrader already does this)
Backtesting Improvements: (I would say MetaTrader already does this/should worry about this)
User-Friendly Interface: (This is a personal preference, the more you use FX the more you know it)
Advanced Money Management: (A lot is already here, but improvements would help)
Multiple Timeframe Analysis: (I would say MetaTrader already does this/should worry about this)
Improved Documentation: (Yes this would help, but has always been like this)
Custom Alerts: (This can already be done)
Debugging Tools: (More information could be good when things are wrong, but the more you use the less this is necessary)
Community Sharing: Easier ways to share and collaborate on projects within the user community. (The community does share (more could be better) but people don't always want to read and just want solutions provided)
Better Mobile Compatibility: (This has more to do with MetaTrader, anything done on PC can be watched on mobile)
Integration with Other Platforms: Support for platforms beyond MT4 and MT5. (This would mean a completely different platform/options to choose type, which might be good but distracts from MetaTrader)
Template System: A more flexible template system for quickly applying common strategies. (this would be good)
Visual Enhancements: Requests for improved graphical elements and node organization. (Not sure what improvements you think would be good)
Conditional Blocks: More versatile conditional logic blocks. (Current is solely logic, but other options inside would be handy)
Licensing Options: More flexible licensing and subscription options. (Don't know but if people need this but it would be good)
Performance Metrics: Detailed performance metrics for strategies. (This site is not here to give people strategies, it is here so people can use their own)
Grid and Martingale Systems: More advanced options for grid and Martingale trading systems. (Martingale is a bad idea, other options would help but they can be created using current blocks)
API Access: API access for more advanced users. (this can be done, especially with things like emails, it would be good for other platforms)
Improved Export Options: Enhanced options for exporting projects to different formats. (again though this is for MetaTrader)
User Support: Better and more responsive customer support. (This would be good)
Platform Stability: General improvements to platform stability and reliability. (I think this is stable, but as above quick response times would be good)
Community Plugins: Ability for users to create and share plugins. (what plugins?)
Advanced Charting: More advanced charting tools and features. (not sure what you mean)
Trade Copying: Tools for copying trades from one account to another. (this could be good but is a lot of work and this software is available elsewhere)
Scalping Tools: Specialized tools for scalping strategies. (don't know what you mean, scalping strategies can be created)
News and Events Integration: Integrating economic news and events into trading strategies. (this would be good, single blocks that can be added to avoid news)
Data Import/Export: Easier import/export of historical data. (this can be done already, is how you collect the data)
Enhanced Strategy Testing: More options and parameters for strategy testing. (this is a MetaTrader enhancement)
Multilingual Support: Full support for multiple languages within the platform. (I don't need this, but if others do it would be good)
The following links are how to create a candle countdown timer, MT4 & MT5, will display next to the current candle, and then switch to seconds in the last minute. All done on tick.
I have now changed the links to a, slightly slimed down better working version... MT4 & MT5
Try this so always showing the result, on mt4 this will show the last trade profit:

Add a shared link so I can see how this is set up
Put that variable into a comment block and see what is being returned... if trade placed is not from the same EA you are reading this value you need to select all automatic and manually placed in the group option
on trade tab - trade(position) closed set to SL - for each trade(position) set to 1 newest to oldest - modify variable (create double variable named what you want) and save the loop profit price. This will give you a variable to use for other actions.
I assume this did what was needed, I use ChatGPT for this type of code, the problem is that the FX trade time returns as a string, not a number. This is MT4 but will show you what I mean:
Use candle 1 for your price levels:

Groups are what a trade is placed in, when you place a trade you give it a group number at the top of the block, so your conditions above are what says to place the trade, you can then use the group number in other blocks to control the trade.