Thanks for your responses everyone, hopefully I can get this running and underway... onto the next EA and forward test!
Latest posts made by DV4
-
RE: Recommended VPS services?posted in Questions & Answers
-
RE: Adjusting EMA OCO limit take profit level every new barposted in Questions & Answers
Thank you jstap... perfect!
-
Recommended VPS services?posted in Questions & Answers
Hi,
I've managed to test an EA I built over the last 9-10 months and ready to try it out on a live account after making some minor changes....
Rather than leaving my PC on continuously, Is there a relatively low cost/ secure windows based VPS service that anyone could recommend where I could run this on some trading platforms 24/7? as it trades relatively infrequently and basically overnight where I'm from....
Keen to try and build some other simple strategies as well... and build on it if it works as per the demo account over 9 months so far
Appreciate any help
Cheers, -
Adjusting EMA OCO limit take profit level every new barposted in Questions & Answers
Hi,
I have a simple strategy that uses an EMA as the profit target, when the order is opened it sets it at the previous candles ema price level,
I would like to get my EA to adjust this with every new bar to the last candles (-1) EMA value so that as it declines the preset target is adjusted down
Reasons being that at present if the internet or platform crashes, there is no fallback to take any profit, also having preset targets allows you to specify whether bid or ask prices trigger the exit taking into account the spread in real time
Can anyone offer some help?
I've built some basic EA's that operate as intended, but still a relative beginner.... -
Compare last candle range vs 1.2x ATR??posted in Questions & Answers
Hi,
I'm relatively new to this, but slowly pulling together some EAs and refining themI have a strategy where I want to look for relatively small bars, and the 'relatively' I want to use is an ATR multiple because it is dynamic and adjusts relative to what the market is doing
I have created a condition box and used
Candle - Candle total size (pip) on Candle ID 1 <= ATR,14 period Candle ID 1, Adjust *1.0But this is not enabling any trades? is this because the ATR indicator has 4 decimals on say USDCHF but my brokers chart has 5 decimals?? i.e. fractional pips?
if I remove this filter my EA works and is taking trades (but taking everything including those that are too large) so I'm not sure how to correct this
Any help appreciated...
Cheers!


-
RE: Managing open orders on multiple timeframesposted in Questions & Answers
Your a legend, l'andorra - great advice, I will amend the magic numbers and hopefully that will fix it!
I'm a noob EA coder so relatively new to managing EAs in practice -
RE: Managing open orders on multiple timeframesposted in Questions & Answers
I think the issue is that the signals to close happen on different timeframes but the trades are already open, this is more of a managing open orders issue and tying them to specific timeframes only and leaving other timeframe orders intact
i.e.
1hr chart trade opens, its looking for MA cross on 1hr chart,
EA is running on 15min chart as well, it see that there is a trade open
prices crosses 15min MA and closes the 1hr orderI'm not sure how to keep these separate other than not trading multiple timeframes on the same MT4 account?
I'm open to any other suggestions? -
RE: Managing open orders on multiple timeframesposted in Questions & Answers
Thank you for your reply!
Although it will still use close all trades in box which is probably net the right way to manage open orders
This will only trigger a close order message but how do I tie that to a specific order that was generated only on that timeframe?
-
RE: Managing open orders on multiple timeframesposted in Questions & Answers
I'm using the If Trade (open buy or sell trade) -> condition (crosses MA) -> Close trades
-
Managing open orders on multiple timeframesposted in Questions & Answers
Hi All,
I've written an EA which creates entries and stop losses but the target is based on hitting a live moving average
One issue I unexpectedly found in testing was that if I use the EA on multiple timeframes it has created order management issues
i.e.
Opens trade on 1hr chart, but because the EA is also on the 15min chart it then closes the 1hr trade on the 15min MA being hit, which means I'm taking profits far too early and negatively impacting R:R ratiosOn their own they work fine on 1 timeframe but I want to test multiple currencies and timeframes together to see what the performance, impact to margin and correlation looks like
How do i manage orders so that the order can be tied to the timeframe that the order was opened on? and only exit when it hits that timeframes MA target?
I've considered placing objects on the chart or using comments in the order line and making the closing conditions subject to finding these but I'm relatively new to FXdreema and so far have been unsuccessful
Any help appreciated!