Rating: Empty Star Empty Star Empty Star Empty Star Empty Star
Help finding or building an indicator
SimonLovett

Member Since Oct 01, 2017  4 posts Simon Lovett (SimonLovett) Dec 31 2017 at 15:27
Hi,

I'm looking for an indicator or ea that looks back at a certain amount of candles for a candle with a total pip size of less then a certain number(say 30pips)+a certain number of pips on the h&L
Example,
Looks back 4 candles and finds 3 candles within the range of the forth candle's total size of 28pips+15pips on the H&L then places sell and buy pending orders at the 15p with a TP of say 10 pips?

ps Im new to this so if my terminology sucks thats why
Attachments:

Always get back up
fxwisdom1

Member Since Aug 24, 2016  15 posts fxwisdom1 Jan 03 at 08:10
Does the mother candle should should have 25 pip diff between the H&L or on the Open and Close?

fxwisdom1

Member Since Aug 24, 2016  15 posts fxwisdom1 Jan 03 at 08:11
My first attempt
Attachments:
insideBarEA.ex4

fxwisdom1

Member Since Aug 24, 2016  15 posts fxwisdom1 Jan 03 at 13:16
2nd attempt with Breakeven
Include a .set file that is profitable on BT over 10 year span

SimonLovett

Member Since Oct 01, 2017  4 posts Simon Lovett (SimonLovett) Jan 04 at 07:28
open and close. so the total size of the candle should be less then a certain number. awesome ill give it a test now

Always get back up
SimonLovett

Member Since Oct 01, 2017  4 posts Simon Lovett (SimonLovett) Jan 04 at 07:29
do you know the code to make the EA only to check price at candle close not ever tick?

Always get back up
SimonLovett

Member Since Oct 01, 2017  4 posts Simon Lovett (SimonLovett) Jan 04 at 07:31
fxwisdom1 posted:
2nd attempt with Breakeven
Include a .set file that is profitable on BT over 10 year span


awesome what currency pair

Always get back up
fxwisdom1

Member Since Aug 24, 2016  15 posts fxwisdom1 Jan 04 at 07:32
fix to the bar range calculation.
In the old file it was high-close
now it's changed to high-low

Also provided a nice backtest result


fxwisdom1

Member Since Aug 24, 2016  15 posts fxwisdom1 Jan 04 at 08:14
latest update.
I just fix the lot size to double instead integer.

Please login to comment.
Industrial Production (MoM) (24 min)
US EIA - Shale output to rise 1.8 millio...(2 min ago)
EURUSD 1.21845 GBPUSD 1.38102
USDJPY 111.422 USDCAD 1.24543
FxPro

Tools

Community

Reviews

Brokers

Platform

Support


Twitter |  Facebook |  Site Map  |  Terms  |   Privacy Policy
©2014 Myfxbook Ltd. All Rights Reserved.
HIGH RISK WARNING: Foreign exchange trading carries a high level of risk that may not be suitable for all investors. Leverage creates additional risk and loss exposure. Before you decide to trade foreign exchange, carefully consider your investment objectives, experience level, and risk tolerance. You could lose some or all of your initial investment; do not invest money that you cannot afford to lose. Educate yourself on the risks associated with foreign exchange trading, and seek advice from an independent financial or tax advisor if you have any questions. Any data and information is provided 'as is' solely for informational purposes, and is not intended for trading purposes or advice.