@l-andorrà Oh that's a shame. Thanks for letting me know.
Posts made by mikev_303
-
RE: Trade entry on color change of indicator lineposted in Questions & Answers
-
Trade entry on color change of indicator lineposted in Questions & Answers
Hi all.
I would appreciate some help on this. I would like the EA to place a buy order when the line changes to Green and Sell order when the line changes to red. The problem is the indicator loads the line with the colors into 1 buffer, however, the code in metaeditor shows 2 buffers. I have included the code below as well as the indicator. I have tried to orientate the condition block so when the indicator = the color it meets the condition but when I run the system in a back test it never places any trades.
https://fxdreema.com/shared/FAuFYEH6
0_1619272865623_Laguerre filter - ng.mq5
Thanks for any help you can give.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@roar I've managed to get the code just about right. However, the sell pending order is placing the sell stop on the wrong side of the moving average line, in the code I have tried to subtract the ATR away from the price when price crosses over the moving average line. However, no matter what I've tried it always adds it on instead, in the same manner it does in the buy pending order when the price crossed about the moving average line.
Not sure why it is adding the ATR onto price regardless of the code saying add or subtract.
https://fxdreema.com/shared/G4yZcl5zd
Thanks.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@roar Hi. Thanks verymuch for your help. It's amazing when you see what you weren't doing it suddenly seems so simple. Much appreciated.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@l-andorrà Thanks, did that, but it still not placing pending orders when I run it in simulation.
Any other suggestions?
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@l-andorrà I have used 'Vatiable4' in blocks 10 and 15 at the start in the adjust part of the open at price section
Thanks.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
Hello @l-andorrà I've written some variables. It is not working out for me at the moment and i'm not sure what i'm doing wrong.
I've tried to create what i talked about above. I've posted what I have done below.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@l-andorrà thanks very much. Looks like I need to learn something new. I haven't created a variable before, ill gove it a go and see what happens.
Hopefully it turns out ok. Thanks very much for your help.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@l-andorrà when the pending order is placed, the price level it is placed at is the actual ATR and not the price level the indicator was crossed over at plus or minus the ATR value.
So if the ATR was 40 pips and price was 0.6958 then it should put a pending order at 6978 (0.5 the ATR value) instead it places a pending order at 0.0020
The problem I see is the price function in the pending order is for custom price and not custom price fraction.
Not sure how to solve it.
-
RE: Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
@l-andorrà Hello. Thanks for your help. Please see below.
-
Pending order based on price moving a percentage of ATR after a previous condition is metposted in Questions & Answers
Hello.
I am using pending orders to set a buy or sell stop after a certain condition is met at any time when trading is open. I would like the order to position at the price point based on a percentage of the ATR. The pending order block has custom price not custom price fraction so the penidng order is placed at a price that is equal to the ATR and not the price amount based on the ATR.
Does anyone have any suggestions to help with this? As so far I am struggling to solve it.
Thanks very much.
-
RE: MT4 tester not working with on chart indicatorposted in Questions & Answers
@l-andorrà I'm confused, last time the indicator was on the chart you said to use the on chart section? How is this time different?
aslo, how should I modify the conditions block?
thanks for your help.
-
MT4 tester not working with on chart indicatorposted in Questions & Answers
Hello. Can someone please help me as to why the strategy tester in mt4 is not placing trades. I always have trouble with on chart indicators and would really appreciate some help.
Thank you
-
RE: trading with indicator colour change on chartposted in Questions & Answers
@l-andorrà Thanks. I moved it to the on chart section and used the indicator is visible, should the different colours be two different buffers, i'm realy confused how to get a buy or sell signal from the indicator is visible block instead of a condition. I've uploaded the code below and it has the colours green and magenta in it. But when I upload the indicator in fxdreema it looks like this.

Can you please offer some guidance.
-
trading with indicator colour change on chartposted in Questions & Answers
Hello.
Could someone please help with the EA below im trying to get a buy trade when the indicator on the chart turns green and a sell trade when the indicator turns Magenta, but it doesn't seem to work.
Thanks in advance.
https://fxdreema.com/shared/sxuXNQ0Fc -
RE: Newbie Help pleaseposted in Questions & Answers
@l-andorrà thanks. But are you able to offer any help with the other problem I am having trying to set stop loss and take profit.
Any help would be greatly appreciated.
-
RE: Newbie Help pleaseposted in Questions & Answers
I managed to solve my problem above. i was loading the MQL5 program file instead of the source code file so now it is working.
Now when i'm testing I am trying to get the EA to set take profit on the ATR of the previous candle and the stop loss at 1.5 times the ATR of the previous candle. In the buy and sell brick I have put the following in but it doesn't seem to work. The stop losses are way to small and I get all losses.

Thanks for the help.
-
RE: Newbie Help pleaseposted in Questions & Answers
@l-andorrà Thank you for replying.
Sorry, I should have given better details. I have created an EA within Fxdreema, including using the custom indicators. I had success running the EA in the strategy tester of MT5 but then it stopped working an now says cannot find custom indicator error 4002. I checked the file path for when I created the indicator and that is correct. I used the setting below, are my data types correct?

My condition in the buy trade section of the EA looks like this

Is there anyway I can upload the fxdreema EA into the forum so you can have a look at it?
0_1591843933587_Donchian_channels20.mq5
Thank you for your help!
-
Newbie Help pleaseposted in Questions & Answers
Hi All.
Testing my indicator in MT5
This is my first attempt at an EA, i'm just trying to get one running in the strategy test successfuly. Please help!
Created EA in Fxdreema, strategy test in MT5 says
cannot load custom indicator 'donchian-channels-indicador' [4002]