Thanks for your responses everyone, hopefully I can get this running and underway... onto the next EA and forward test!
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!
-
RE: ATR Stop Loss - Add ATR multiple above or below last two candles highs or lows?posted in Questions & Answers
Thanks for the response, I'm grateful
My challenge I've found is that I need to apply the ATR stop loss above or below the last two candles high or low - the ATR is then multiplied and extends the stop beyond this level
I'll give your suggestion a try although I think the stop should be using the last 2 candle high and low and then applying the formula you mentionWhat I'm finding is that I can modify them but the stop determines the position size and it is not consistent at present as it may be initially 1% but extends out to 4% risk which then randomly adds weight to every outcome
-
ATR Stop Loss - Add ATR multiple above or below last two candles highs or lows?posted in Questions & Answers
Hi All,
I'm new to fxdreema and having an issue with coding a stop loss that work how I want it to....
I'm aware you can set stop losses using indicators but I cannot get the stop loss to work as intended
For buys I'm looking to set a stop loss that is an ATR multiple (i.e. ATR x 1.0x) below the lowest low of the last two candles (candles 1-2), and reverse for sell stops
Any ideas on how I can do this in FXdreema?
my initial thoughts I need to create a separate indicator for the 2 day highs or lows and then add ATRs to that?
Any help would be appreciated!
Cheers,
-
ATR Multiple stop loss above last 2 candles high or lowposted in Questions & Answers
Hi,
I've tried to create a stop loss above the last two candles high or low, by adding an ATR multiple (say 0.5x ATR) above the high or below the low of the last two candles
I've managed to get it to work by modifying the stop loss but the issue I'm having is that my position sizing is based on the original stop loss and sometimes with a volatility based stop loss your risk increases dramatically when you adjust it (i.e. was 1% now 5-6%).
Which makes it difficult to measure the systems performance as your adding unmanageable risk into the equation
Is there a way to create the correct stop loss?
Cheers