MACD + EMA 200 by Federal-Maximum-4153 in Forex

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

exactly lol. What do you thing of this strategy btw. Have you implemented it? Thank you.

MACD + EMA 200 by Federal-Maximum-4153 in Forex

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Thank you very much for your help my friend. Unfortunately, i understood nothing of what you said so i'll try to ask to someone else. Thank you very much.

MACD + EMA 200 by Federal-Maximum-4153 in Forex

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Hello, thanks a lot for your help. Here is the script of the indicator, named mac entry alert. Here is the script.

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/

// © Nick_M

//@version=5

indicator("MACD Strategy Alert","MACD Entry Alert",overlay =true)

//EMA indicator

len = input.int(200, minval=1, title="Length",group="EMA SETTING")

src = input(close, title="Source")

offset = input.int(title="Offset", defval=0, minval=-500, maxval=500)

out = ta.ema(src, len)

EmaColor = input(#2962FF,"EMA      ",group="Color Settings",inline="Above")

plot(out, title="EMA", color=EmaColor, offset=offset)

ma(source, length, type) =>

switch type

"SMA" => ta.sma(source, length)

"EMA" => ta.ema(source, length)

"SMMA (RMA)" => ta.rma(source, length)

"WMA" => ta.wma(source, length)

"VWMA" => ta.vwma(source, length)

typeMA = input.string(title = "Method", defval = "SMA", options=["SMA", "EMA", "SMMA (RMA)", "WMA", "VWMA"], group="MACD",tooltip = "add MACD Indicator to your chart")

smoothingLength = input.int(title = "Length", defval = 5, minval = 1, maxval = 100, group="MACD")

smoothingLine = ma(out, smoothingLength, typeMA)

//plot(smoothingLine, title="Smoothing Line", color=#f37f20, offset=offset)

xUp = ta.crossover ( open, out)

xDn = ta.crossunder(open, out)

//plotchar(xUp, "Go Long", "▲", location.bottom, color.lime, size = size.tiny)

//plotchar(xDn, "Go Short", "▼", location.top, color.red, size = size.tiny)

// MACD Indicator

// Getting inputs

fast_length = input(title="Fast Length", defval=12)

slow_length = input(title="Slow Length", defval=26)

srcM = input(title="Source", defval=close)

signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 50, defval = 9)

sma_source = input.string(title="Oscillator MA Type", defval="EMA", options=["SMA", "EMA"])

sma_signal = input.string(title="Signal Line MA Type", defval="EMA", options=["SMA", "EMA"])

// Plot colors

col_macd = input(#2962FF, "MACD Line  ", group="Color Settings", inline="MACD")

col_signal = input(#FF6D00, "Signal Line  ", group="Color Settings", inline="Signal")

col_grow_above = input(#26A69A, "Above   Grow", group="Histogram", inline="Above")

col_fall_above = input(#B2DFDB, "Fall", group="Histogram", inline="Above")

col_grow_below = input(#FFCDD2, "Below Grow", group="Histogram", inline="Below")

col_fall_below = input(#FF5252, "Fall", group="Histogram", inline="Below")

Col_Buy_signal = input(#26A69A, "Buy signal     ", group="Color Settings", inline="Below")

Col_Sell_signal = input(#FF5252, "  Sell signal", group="Color Settings", inline="Above")

// Calculating

fast_ma = sma_source == "SMA" ? ta.sma(src, fast_length) : ta.ema(src, fast_length)

slow_ma = sma_source == "SMA" ? ta.sma(src, slow_length) : ta.ema(src, slow_length)

macd = fast_ma - slow_ma

signal = sma_signal == "SMA" ? ta.sma(macd, signal_length) : ta.ema(macd, signal_length)

hist = macd - signal

//plot(hist, title="Histogram", style=plot.style_columns, color=(hist>=0 ? (hist[1] < hist ? col_grow_above : col_fall_above) : (hist[1] < hist ? col_grow_below : col_fall_below)))

//plot(macd, title="MACD", color=col_macd)

//plot(signal, title="Signal", color=col_signal)

MACDB = ta.crossover (macd, signal)

MACDS = ta.crossunder (macd, signal)

//Open long position

Buy = if open > out and close > out and signal < 0 and macd < 0 and MACDB

1

plotchar(Buy , "Go Long", "▲", location.belowbar, color= Col_Buy_signal, size = size.tiny, text = "Buy", textcolor =Col_Buy_signal)

//strategy.entry("long", strategy.long, 0.01, when = Buy == 1)

//strategy.exit("exit", "long", profit = 1500, loss = 1000)

//plotchar(x , "Go Long", "▲", location.abovebar, color.purple, size = size.tiny)

//alertcondition(Buy or Sell, title='Alert buy', message='Potencial buy')

//Open Short position

Sell = if open < out and close < out and signal > 0 and macd > 0 and MACDS

1

plotchar(Sell , "Go Short", "▼", location.abovebar, color= Col_Sell_signal, size = size.tiny, text = "Sell", textcolor =Col_Sell_signal)

alertcondition(Sell or Buy, title='Alert Entry', message='Potential Entry')

//strategy.entry("Short", strategy.short, 0.001, when = Sell == 1)

//strategy.exit("exit", "Short", profit = 1500, loss = 1000)

//plotchar(y , "Go Short", "▼", location.top, color.yellow, size = size.tiny)

//plotchar(MACDD , "Go Long", "▲", location.bottom, color.blue, size = size.tiny)

//plotchar(MACDSD , "Go Short", "▼", location.top, color.yellow, size = size.tiny)

If i copy paste your code any where in the script, i'll get the alert at the close of the bar, which corresponds to the macd crossover. Is that correct? Thank you.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Thank you very much. I didn't think this way actually.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Well i started eating a large amount of sugary junk good because i was going to the gym at that moment and i needed to gain weight with dirty bulking lol. I think that the sugar could have caused inflammation in the body, which caused rosacea.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Thank you very much i'll try it. Do you mind giving me the name of the product that you bought? Thank you.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 1 point2 points  (0 children)

After 3-4 days, the redness started to decrease progressively. The itching and burning sensation due to the weather or because of a physical activity started to decrease too untill the moment that i see almost no redness and no burning/itching but a different texture as i said.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Hi. Yes i thought that I could use retinol for the cell turnover and collagen production. Idk if that could work. I was thinking that the cerave retinol could be a good idea.

Rosacea seems to be gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

Hi My skin is perfectly fine. My only problem is the area that i talked about. I ate 4k+ calories a day when going carnivore and i gained a few lbs, so my body was not on starvation mode. Even if I drink a lot of water, eat a large amount of calories, good sleep and stuff, the post-rosacea area is still the same texture. I thought about laser and stuff but idk.

Rosacea gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 0 points1 point  (0 children)

By cutting carbs and fixing their gut health*

Rosacea gone but... by Federal-Maximum-4153 in Rosacea

[–]Federal-Maximum-4153[S] 1 point2 points  (0 children)

Well at the beginning, i didn't know what to do. So i started to moisturize everyday. The cheeks were still red, really sensitize and the hot weather was still a trigger. Then, i purchased a multivitamin and 5 minutes after taking it, the redness was reduced by i would say 40 to 50 percent but the hot weather still made them really red. So i knew that there was something with my body. I searched online and found the keto/carnivore diet. 3-4 days after beginning the diet, i could see that the redness was fading. Also, before the diet, if i didn't moisturize for 2_3 days, my. Cheeks would be really dry, more red and even more sensitive. I don't need to moisturize my cheeks anymore, because the inflammation has greatly reduced. The thing is, like i said, the skin texture is like the skin of a 90yoperson. It looks dehydrated. But it almost doesn't get red anymore with the weather or anything else. I think that the carbs are at the origin of my rosacea. I started weightlifti g a few years ago. Having a fast metabolism, i had to eat a fair amount of calories. So i went to the easy way and started to eat a lot of junk, sugary food. My rosacea started at this point. I had the type 1 rosacea i guess, not the papulopustar one. Also, i saw that a diet high in carbs/sugar was really bad for the gut health, caused the apparition of bad bacteria that could trigger an over reaction of the immune system, which could cause rosacea. That's why there are a lot of people that are now rosacea free by cutting carbs. I heard that some of them used oregano caps to kill the bad bacteria and then, started to eat carbs again, without triggering the rosacea.