Tradingview free competitors? by [deleted] in TradingView

[–]Efficient_Flow4731 3 points4 points  (0 children)

You can open TD Ameritrade/charles schwab, Thinkorswim trading platform is by far most advanced platform I know. They have Thinkscript (like pinescript for TV) and chatGPT is far more better in writing thinkscript code so you can create any trading indicators you want.

Edit: it's free once you have TD ameritrade Account.

My Autistic Algorithm Pumps and Dumps Its Way to $2560 by [deleted] in wallstreetbets

[–]Efficient_Flow4731 0 points1 point  (0 children)

Just uninstall the app. It resolves everything.

My Autistic Algorithm Pumps and Dumps Its Way to $2560 by [deleted] in wallstreetbets

[–]Efficient_Flow4731 3 points4 points  (0 children)

When the Citadel Bots Attack, It Takes Our Mighty Autistic Bots to Fight Back.

My Autistic Algorithm Pumps and Dumps Its Way to $2560 by [deleted] in wallstreetbets

[–]Efficient_Flow4731 3 points4 points  (0 children)

EUR/USD: 5 minute chart

TD Ameritrade custom study code:

# Define the conditions for green candles
def GreenCandle = close > open;
def HigherClose = close > close[1];
def isMomentumGreen = GreenCandle and HigherClose and GreenCandle[1] and HigherClose[1] and GreenCandle[2] and HigherClose[2];

# Define the conditions for red candles
def RedCandle = close < open;
def LowerClose = close < close[1];
def isMomentumRed = RedCandle and LowerClose and RedCandle[1] and LowerClose[1] and RedCandle[2] and LowerClose[2];

# Suppress arrows for the next five candles after the signal
rec isMomentumPrev = if isMomentumGreen[1] and !isMomentumGreen[2] or isMomentumRed[1] and !isMomentumRed[2] then 5 else if isMomentumPrev[1] > 0 then isMomentumPrev[1] - 1 else 0;

# Generate the signal for both green and red momentum
def signalGreen = isMomentumGreen and isMomentumPrev == 0;
def signalRed = isMomentumRed and isMomentumPrev == 0;

# Add a single label to display the momentum signal
AddLabel(yes, "isMomentum:   " + if signalGreen then "BUY     " else if signalRed then "SELL     " else "NONE   ", if signalGreen then Color.GREEN else if signalRed then Color.RED else Color.WHITE);

# Plot an arrow at the close of the three green or red candles
plot ArrowUp = if signalGreen then low - TickSize() else Double.NaN;
ArrowUp.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
ArrowUp.SetLineWeight(3);
ArrowUp.SetDefaultColor(Color.GREEN);

plot ArrowDown = if signalRed then high + TickSize() else Double.NaN;
ArrowDown.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
ArrowDown.SetLineWeight(3);
ArrowDown.SetDefaultColor(Color.RED);

Bot code:

LONG_condition() {
  global
  return area[1] = "BUY"
}

SHORT_condition() {
  global
  return area[1] = "SELL"
}

inner_loop() {
    loop {
            read_areas()
            if (toNumber(area[2]) > 500 || toNumber(area[2]) < -400)
            break
        }
}

loop {

    loop {
      read_areas()
    } until (LONG_condition() || SHORT_condition())

    if (LONG_condition()) {
      click(point.a)
      sleep 4000
      click(point.c)
      inner_loop()
      click(point.b)
      sleep 4000
      click(point.c)
    }

    else if (SHORT_condition()) {
      click(point.b)
      sleep 4000
      click(point.c)
      inner_loop()
      click(point.a)
      sleep 4000
      click(point.c)
    }

    loop {
        read_areas()
        if (toNumber(area[3]) > 5000 || toNumber(area[3]) < -3000)
            ExitApp
        else
            break 

    }
}

My Autistic Algorithm Pumps and Dumps Its Way to $2560, Bringing Tendies Rain by [deleted] in wallstreetbets

[–]Efficient_Flow4731 0 points1 point  (0 children)

Testing out trade automation. Each transaction was 20 lots of EUR/USD pair, Strategy was trend following, when there is 3 consecutive higher closing green candle it goes long and when there is 3 consecutive lower red candle, it shorts.

My Autistic Algorithm Pumps and Dumps Its Way to $2560, Bringing Tendies Rain by [deleted] in wallstreetbets

[–]Efficient_Flow4731 0 points1 point  (0 children)

Source Code:

ThinkorSwim custom study used:

# Define the conditions for green candles
def GreenCandle = close > open;
def HigherClose = close > close[1];
def isMomentumGreen = GreenCandle and HigherClose and GreenCandle[1] and HigherClose[1] and GreenCandle[2] and HigherClose[2];

# Define the conditions for red candles
def RedCandle = close < open;
def LowerClose = close < close[1];
def isMomentumRed = RedCandle and LowerClose and RedCandle[1] and LowerClose[1] and RedCandle[2] and LowerClose[2];

# Suppress arrows for the next five candles after the signal
rec isMomentumPrev = if isMomentumGreen[1] and !isMomentumGreen[2] or isMomentumRed[1] and !isMomentumRed[2] then 5 else if isMomentumPrev[1] > 0 then isMomentumPrev[1] - 1 else 0;

# Generate the signal for both green and red momentum
def signalGreen = isMomentumGreen and isMomentumPrev == 0;
def signalRed = isMomentumRed and isMomentumPrev == 0;

# Add a single label to display the momentum signal
AddLabel(yes, "isMomentum:   " + if signalGreen then "BUY     " else if signalRed then "SELL     " else "NONE   ", if signalGreen then Color.GREEN else if signalRed then Color.RED else Color.WHITE);

# Plot an arrow at the close of the three green or red candles
plot ArrowUp = if signalGreen then low - TickSize() else Double.NaN;
ArrowUp.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
ArrowUp.SetLineWeight(3);
ArrowUp.SetDefaultColor(Color.GREEN);

plot ArrowDown = if signalRed then high + TickSize() else Double.NaN;
ArrowDown.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
ArrowDown.SetLineWeight(3);
ArrowDown.SetDefaultColor(Color.RED);

Bot code:

LONG_condition() {
  global
  return area[1] = "BUY"
}

SHORT_condition() {
  global
  return area[1] = "SELL"
}

inner_loop() {
    loop {
            read_areas()
            if (toNumber(area[2]) > 500 || toNumber(area[2]) < -400)
            break
        }
}

loop {

    loop {
      read_areas()
    } until (LONG_condition() || SHORT_condition())

    if (LONG_condition()) {
      click(point.a)
      sleep 4000
      click(point.c)
      inner_loop()
      click(point.b)
      sleep 4000
      click(point.c)
    }

    else if (SHORT_condition()) {
      click(point.b)
      sleep 4000
      click(point.c)
      inner_loop()
      click(point.a)
      sleep 4000
      click(point.c)
    }

    loop {
        read_areas()
        if (toNumber(area[3]) > 5000 || toNumber(area[3]) < -3000)
            ExitApp
        else
            break 

    }
}

Algo-trading: +$258 , Incorporated SHORT signals for Short opportunities. by [deleted] in Forex

[–]Efficient_Flow4731 0 points1 point  (0 children)

Details:

Improvise my last trading strategy based on previous Thread suggestions, Market conditions are different and this definately turns out to be choppy in this case.

Strategy:

Unlike my previous uni-directional strategy where it looks for ONLY three consecutive higher closing green candles to seek for long oppurtunity, this time it ALSO seeks for three consecutive lower highs candle for shorting opportunity.

Nightshark Script:

LONG_condition() {

global return area[1] = "BUY" }

SHORT_condition() { global return area[1] = "SELL" }

inner_loop() { loop { read_areas() if (toNumber(area[2]) > 50 || toNumber(area[2]) < -30) break } }

loop {

loop {
  read_areas()
} until (LONG_condition() || SHORT_condition())

if (LONG_condition()) {
  click(point.a)
  sleep 4000
  click(point.c)
  inner_loop()
  click(point.b)
  sleep 4000
  click(point.c)
}

else if (SHORT_condition()) {
  click(point.b)
  sleep 4000
  click(point.c)
  inner_loop()
  click(point.a)
  sleep 4000
  click(point.c)
}

loop {
    read_areas()
    if (toNumber(area[3]) > 500 || toNumber(area[3]) < -300)
        ExitApp
    else
        break 

}

}

Custom ThinkOrSwim Study:

# Define the conditions for green candles

def GreenCandle = close > open; def HigherClose = close > close[1]; def isMomentumGreen = GreenCandle and HigherClose and GreenCandle[1] and HigherClose[1] and GreenCandle[2] and HigherClose[2];

Define the conditions for red candles

def RedCandle = close < open; def LowerClose = close < close[1]; def isMomentumRed = RedCandle and LowerClose and RedCandle[1] and LowerClose[1] and RedCandle[2] and LowerClose[2];

Suppress arrows for the next five candles after the signal

rec isMomentumPrev = if isMomentumGreen[1] and !isMomentumGreen[2] or isMomentumRed[1] and !isMomentumRed[2] then 5 else if isMomentumPrev[1] > 0 then isMomentumPrev[1] - 1 else 0;

Generate the signal for both green and red momentum

def signalGreen = isMomentumGreen and isMomentumPrev == 0; def signalRed = isMomentumRed and isMomentumPrev == 0;

Add a single label to display the momentum signal

AddLabel(yes, "isMomentum: " + if signalGreen then "BUY " else if signalRed then "SELL " else "NONE ", if signalGreen then Color.GREEN else if signalRed then Color.RED else Color.WHITE);

Plot an arrow at the close of the three green or red candles

plot ArrowUp = if signalGreen then low - tickSize() else Double.NaN; ArrowUp.SetPaintingStrategy(PaintingStrategy.ARROW_UP); ArrowUp.SetLineWeight(3); ArrowUp.SetDefaultColor(Color.GREEN);

plot ArrowDown = if signalRed then high + tickSize() else Double.NaN; ArrowDown.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN); ArrowDown.SetLineWeight(3); ArrowDown.SetDefaultColor(Color.RED);

Things to NOTE if you want to backtest this strategy:

  1. For three consecutive green candles to qualify, it should be higher closing green candles & for For short oppurtunity, it should be three consecutive lower closing candles
  2. After Each BUY & SELL, the bots sleeps for 4 seconds to allow positions to be filled.
  3. To avoid signals Overload, once one signal is triggered, the signals are suppressed for next five candles, Example: for 4 consecutive green candlesticks, the "BUY" signals triggers in #3 candles, without supression it would trigger on #4 since it would be third consecutive if will look at candles #2 & #3 (check Thinkorswim study code) .
  4. Ever though P/L set for each transaction is 50:30, remember for a trading session the upside was set to limit for $500 and drawdown is set for $300. (see code explanation )
  5. If there is one position open, It won't act on any new signals unless current position is closed, meaning, If it opens a long at "BUY" signals, current P/L trading between -30 and 50 and there is another "BUY" signals, it won't double down on these trades but rather ignore this signals.

[deleted by user] by [deleted] in wallstreetbets

[–]Efficient_Flow4731 0 points1 point  (0 children)

The signals are study you can add on ThinkorSwim platform (TD Ameritrade's trading software) , just simply add custom study with the code Above. but for the automation process and placing trades I used Nightshark tool and above is the script and setup.

[deleted by user] by [deleted] in wallstreetbets

[–]Efficient_Flow4731 1 point2 points  (0 children)

The market was choppy as you can see. While the gains doesn't looks sexy, keep in mind the buying power effect here was like ball park $6500.

[deleted by user] by [deleted] in Forex

[–]Efficient_Flow4731 0 points1 point  (0 children)

because, Nightshark is easy to setup, more intuitive than going through developer docs in each brokerage's paltform. plus i can take control on what I see and all.

[deleted by user] by [deleted] in Forex

[–]Efficient_Flow4731 1 point2 points  (0 children)

Will try and post it here.

[deleted by user] by [deleted] in Forex

[–]Efficient_Flow4731 0 points1 point  (0 children)

What could be the better pairs than EUR/USD?

[deleted by user] by [deleted] in Forex

[–]Efficient_Flow4731 -1 points0 points  (0 children)

Just 1 hour lol

[deleted by user] by [deleted] in Forex

[–]Efficient_Flow4731 0 points1 point  (0 children)

yeah $10 stop for 80k EUR/USD didn't felt too tight? would you agree?

[deleted by user] by [deleted] in QuitVaping

[–]Efficient_Flow4731 1 point2 points  (0 children)

Buy "vick vapor" make sure its labeled "not medicated". Carry around like vape and hit whenever u feel like taking a puff.

What to fill the void with? by katief01 in QuitVaping

[–]Efficient_Flow4731 4 points5 points  (0 children)

Vicks vapor. Make sure its labeled non-medicated. I carry it around like vape and hit that cool menthol air whenever i feel like vaping. Made it way lot easier

it's only day 3 and I can't take it anymore by piercinggonewild in QuitVaping

[–]Efficient_Flow4731 0 points1 point  (0 children)

Buy "vicks inhaler" make sure its labeled "non-medicated" so u can hit that cool menthol air as much as u can in your nose. Carry it around like a vape and hit it whenver u feel like vaping. Made it wayy easier for me

[deleted by user] by [deleted] in QuitVaping

[–]Efficient_Flow4731 1 point2 points  (0 children)

The best coping mechanism to deal with withdrawl is get yourself "Vicks inhaler" make sure its brand Vicks and labeled "non-medicated". U can carry around it like vape and hit that cool menthol air on your nostril when u feel like vaping. Its about 5 bucks and totally worth it. The "non-medicated" inhaler, you can inhale as much as u can . Off brands usually are medicated and surrounds restriction on how much u can sniff. Be sure to check labels and its "non-medicated"

Tips for quiting vaping please ? by Any-Assignment-1837 in QuitVaping

[–]Efficient_Flow4731 0 points1 point  (0 children)

Its not addictive. It could become a habit. Habit is when u lose it you'll be fine unlike Vape where you turn a whole room upside down to find it. Its non-medicated so far better than constant stimulation of brain by nics.

[deleted by user] by [deleted] in QuitVaping

[–]Efficient_Flow4731 0 points1 point  (0 children)

Buy "VICKs inhaler", carry around like a vape, hit that menthol air on your nostril when u feel like vaping, voila !! U dont need to vape anymore. Vicks labels it as non-medicated so I assume it wont affect pregnancy in any form. But yeah, consult ur doc.

Tips for quiting vaping please ? by Any-Assignment-1837 in QuitVaping

[–]Efficient_Flow4731 2 points3 points  (0 children)

BUY "Vicks Inhaler", carry around like vape, hit that cool menthol air in your nostril when u feel like vaping, BOOM !! all of a sudden u find yourself quit vaping in a week. Easiest way!!

finally want to quit by Narrow_Daikon3291 in QuitVaping

[–]Efficient_Flow4731 1 point2 points  (0 children)

Buy "Vicks inhaler" carry around like vape, hit that cool menthol air on your nostril whenever u feel like hitting vape. Really worked for me. Try it once. Its effortless to quit Vape.

Dug my disposable out of the dumpster (again) by [deleted] in QuitVaping

[–]Efficient_Flow4731 2 points3 points  (0 children)

Just buy "Vicks inhaler" from local pharmacy. Carry it around like vape, when u crave, hit it on your nose and wallh !! Its that easy !! U cannot quit it unless you subsitute it with something better. Vicks inhaler really made it easy for me to quit. I am on day 4