@denk777 Once a cross has happened it becomes >or<, you can use flags to record when it happens, just remember to reset, you will need to set up different options in your trees so every option is covered.
Posts made by jstap
-
RE: EA on MT5 - (M5 timeframe) opening trades against trend (Please Help Fix Ex.5)posted in Questions & Answers
-
RE: Read Information from a custom dashboard indicator?posted in Questions & Answers
@jjtrader This is how to do it, check the modify variables block, the code string to double removes the + & % but keeps the -, copy what you need to create for what you need, good luck.
-
RE: Read Information from a custom dashboard indicator?posted in Questions & Answers
@jjtrader The problem is that the information is text not numeric, I'll have a look at what you can do:
https://fxdreema.com/shared/F7CljLlce

-
RE: EA on MT5 - (M5 timeframe) opening trades against trend (Please Help Fix Ex.5)posted in Questions & Answers
@denk777 If you are talking about the lot, it is set to 0.10:

-
RE: help for Equity DDposted in Questions & Answers
@mcvinbabas Don't need the pass blocks, the pink in loop options only work under a pink for each (closed) trade.
-
RE: Trend following and regression to the mean EAposted in Questions & Answers
@hoodedcrow I can try and help but the best thing is to start with a bit ask questions and you'll find an answer if it's known, EA's that are already created will likely do things without showing what they do.
-
RE: any formula or loopposted in Questions & Answers
@priyaavatar Then you will have to learn about arrays, but they are not easy to add to FX.
-
RE: Trend following and regression to the mean EAposted in Questions & Answers
@hoodedcrow That EA only has 1 line of code and this is only needed if line/ma being flat is wanted, FX does create lines of code but logically connecting blocks is how it does this.
-
RE: Slippages, Spreads, and Commissions the demons of forexposted in Questions & Answers
@namiyrd I assume you mean about 5pm us time, this is relatively easy set a filter that works at a set time, use pink for each trade-pink modify stopes, the same again to set stops back, bear in mind the trailing stop, if used will interfere so need to be temporally stopped, alternatively this could be used to reset stops.
As for counteracting slippage, this is not so easy, you would have to record the price level of the ask/bid on trade creation, compare this to the open price, adjust things to match, You would be better setting a max slippage in the buy/sell blocks.
-
RE: Two trailing stop losses trailing towards each otherposted in Tutorials by Users
@namiyrd use trailing stop for group of trades, never used it but would think this is what it does.
-
RE: any formula or loopposted in Questions & Answers
@priyaavatar Use a time filter, once per daily bar, this should activate once on the first tick of the daily candle.
-
RE: About last x candleposted in Questions & Answers
@gauss You may need custom code to do this, I do have a loop that will count the amount of candles above and below a MA, download and run on tester so you can see how it works, the two blank conditions are to put somewhere like the buy/sell trees
Hope this helps:
-
RE: Trend following and regression to the mean EAposted in Questions & Answers
@hoodedcrow Cant help you much as this means creating a complete robot, practice and learn, ask any questions, maybe find a programmer, I can possibly help with using a MA for trend though: https://fxdreema.com/forum/topic/13728/how-to-get-line-ma-slope
-
RE: How to get line/MA slopeposted in Tutorials by Users
@alphaomega I now use can ID 0 or 1 in left operand, what ever is in the constant in right operand, makes no difference just positive slope number trend is up instead of down. I quite often use 0 >< slope, means you get no flat angle.
-
RE: Read Information from a custom dashboard indicator?posted in Questions & Answers
@jjtrader Look in your object list, if the information is there it will tell you the type, you can get this information by using object on chart and use in conditions.
-
RE: EA on MT5 - (M5 timeframe) opening trades against trend (Please Help Fix Ex.5)posted in Questions & Answers
@denk777 When tested on back test it places trades for me.
-
RE: How to get line/MA slopeposted in Tutorials by Users
@alphaomega You can also do this with moving averages, just put the MA in the formula block.
-
RE: Moving Average stop lossposted in Tutorials by Users
@jstap It has done it for me as well, I am unsure why has never happened to me before, as there is only 6 blocks try recreating and setting the magic number to 0 as this is manually placed, maybe set each block to all manually placed and automatic.
-
RE: Moving Average stop lossposted in Tutorials by Users
@baccicin I am unsure, put the FX shared project link here, I'll have a look.