Dear Mr. Tool! ...please add the fix...Third-level co-direction alert...and co-direction arrows don't show up...thanks...
Re: MT4 Indicator requests and ideas
17082kvak, mrtools, or any of the wonderful coders on this website: Would it be possible to convert the indicator below into MT4 format?
https://www.tradingview.com/script/ONXv ... nal-Index/
The code is below:
I'm thinking this indicator could be expanded upon in numerous ways:
The code looks fairly easy to translate into MT4 language as it's only a few lines at most. Not sure if it is more appropriate to put it in the ADX thread or the Moving Averages thread.
I had the chance to do some very light backtesting on SPX500 1-minute charts using a length setting of 50 and it looks very promising. Losses are small enough that one winner can wipe a couple of them out.
Appreciate you guys and all that you do!
https://www.tradingview.com/script/ONXv ... nal-Index/
The code is below:
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © peacefulToucan67678
//@version=5
indicator("MADX")
length = input.int(100)
mahigh = ta.ema(high, length)
malow = ta.ema(low, length)
maclose = ta.ema(close, length)
bear = mahigh/maclose
bull = maclose/malow
plot(bear, color=#f44336, linewidth=2, title="MADX-")
plot(bull, color=#006064, linewidth=2, title="MADX+")
I'm thinking this indicator could be expanded upon in numerous ways:
- Being able to add all averages to the indicator so we aren't limited to just the EMA
- Ability to edit which kind of moving average you use for "mahigh", "malow", and "maclose" for some interesting combinations
- Modifying the length of "mahigh", "malow", and "maclose" separately so you aren't stuck with one length for all 3 parameters
- Adding the ability to see the indicator in MTF/AHTF
- Arrows for an entry that is visually easier to see
- Coloring the candles to reflect when the indicator is in bullish/bearish mode
- Alerts so we don't have to sit at our computers all day for a viable trade signal
- A button for easier analysis and less CPU consumption
The code looks fairly easy to translate into MT4 language as it's only a few lines at most. Not sure if it is more appropriate to put it in the ADX thread or the Moving Averages thread.
I had the chance to do some very light backtesting on SPX500 1-minute charts using a length setting of 50 and it looks very promising. Losses are small enough that one winner can wipe a couple of them out.
Appreciate you guys and all that you do!
- These users thanked the author TransparentTrader for the post (total 2):
- kvak, Jedidiah
Re: MT4 Indicator requests and ideas
17083Sorry, wasn't able to fix it.DAVID99 wrote: Sun Nov 27, 2022 5:04 am Dear Mr. Tool! ...please add the fix...Third-level co-direction alert...and co-direction arrows don't show up...thanks...
Re: MT4 Indicator requests and ideas
17084Thanks for the code, looks doable, kind of past my bedtime now, but if no one gets to it before tomorrow, will try to do a version.TransparentTrader wrote: Sun Nov 27, 2022 6:08 pm kvak, mrtools, or any of the wonderful coders on this website: Would it be possible to convert the indicator below into MT4 format?
https://www.tradingview.com/script/ONXv ... nal-Index/
The code is below:
Code: Select all
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © peacefulToucan67678 //@version=5 indicator("MADX") length = input.int(100) mahigh = ta.ema(high, length) malow = ta.ema(low, length) maclose = ta.ema(close, length) bear = mahigh/maclose bull = maclose/malow plot(bear, color=#f44336, linewidth=2, title="MADX-") plot(bull, color=#006064, linewidth=2, title="MADX+")
I'm thinking this indicator could be expanded upon in numerous ways:
- Being able to add all averages to the indicator so we aren't limited to just the EMA
- Ability to edit which kind of moving average you use for "mahigh", "malow", and "maclose" for some interesting combinations
- Modifying the length of "mahigh", "malow", and "maclose" separately so you aren't stuck with one length for all 3 parameters
- Adding the ability to see the indicator in MTF/AHTF
- Arrows for an entry that is visually easier to see
- Coloring the candles to reflect when the indicator is in bullish/bearish mode
- Alerts so we don't have to sit at our computers all day for a viable trade signal
- A button for easier analysis and less CPU consumption
The code looks fairly easy to translate into MT4 language as it's only a few lines at most. Not sure if it is more appropriate to put it in the ADX thread or the Moving Averages thread.
I had the chance to do some very light backtesting on SPX500 1-minute charts using a length setting of 50 and it looks very promising. Losses are small enough that one winner can wipe a couple of them out.
Appreciate you guys and all that you do!
- These users thanked the author mrtools for the post (total 3):
- Jimmy, Jedidiah, Chickenspicy
Re: MT4 Indicator requests and ideas
17086Hello. You may test my version here..madx..Thanks for idea...TransparentTrader wrote: Sun Nov 27, 2022 6:08 pm kvak, mrtools, or any of the wonderful coders on this website: Would it be possible to convert the indicator below into MT4 format?
The code looks fairly easy to translate into MT4 language as it's only a few lines at most. Not sure if it is more appropriate to put it in the ADX thread or the Moving Averages thread.
I had the chance to do some very light backtesting on SPX500 1-minute charts using a length setting of 50 and it looks very promising. Losses are small enough that one winner can wipe a couple of them out.
Appreciate you guys and all that you do!
- These users thanked the author kvak for the post:
- TransparentTrader
Re: MT4 Indicator requests and ideas
17087Hello to all, your time and efforts are a thing of legend.
Kvac put out this nice indicator earlier viewtopic.php?p=1295496883#p1295496883
I would like to know if it is possible to combine 2 or 3 time frames into one line, with a neutral color when the TF's don't match up? Interested in the same for G-Channel...or any other "line type" indicators.
Thank you for your consideration.
Kvac put out this nice indicator earlier viewtopic.php?p=1295496883#p1295496883
I would like to know if it is possible to combine 2 or 3 time frames into one line, with a neutral color when the TF's don't match up? Interested in the same for G-Channel...or any other "line type" indicators.
Thank you for your consideration.
Re: MT4 Indicator requests and ideas
17088Hi everyone! I kindly need a small change regarding the BBFlat. I would like to be able to see data for pairs that don't have JPY, with more decimals. In pairs that own the JPY, for obvious reasons, the data is more extensive. I need these data to perform some calculations as I would like to build an EA. Thanks to anyone who can help me.
Re: MT4 Indicator requests and ideas
17089Hi Mrtools,mrtools wrote: Sat May 07, 2022 6:15 am Thanks for letting me know, think it was the indicator, try this one.
Can you please add all averages to the Vininl_BA_MA btn indicator. Please add the averages to both Wpr MA Method and Bands MA Method.
viewtopic.php?f=579496&t=8412977&start=1020
Thanks
Re: MT4 Indicator requests and ideas
17090Sorry don't have the code for that one anymore.traderokey wrote: Mon Nov 28, 2022 10:53 am Hi Mrtools,
Can you please add all averages to the Vininl_BA_MA btn indicator. Please add the averages to both Wpr MA Method and Bands MA Method.
viewtopic.php?f=579496&t=8412977&start=1020
Thanks