I have just bought it, now on Monday I will know how much loss and how much profit I will make.
▲ 3 r/IndiaOptionsSelling+1 crossposts

I have just bought it, now on Monday I will know how much loss and how much profit I will make.

What do you think, should I hold it till Monday or sell it today?

u/Plastic_Pirate_ — 3 days ago

Ever since I bought Wipro, it hasn't gone up even by a single rupee. In fact, it started falling from the very day I bought it.😅😅

"I have just started an SIP in Wipro. I bought the stock at ₹204 and have never sold it. Now it is trading at ₹174. Should I continue holding it and invest more, or should I average down my position?"

u/Plastic_Pirate_ — 12 days ago

I have the code for algo trading now. It is fully functional, how can I do it in Delta Exchange?

//@version=6

strategy(

"Professional Multi-Divergence Strategy",

overlay=true,

pyramiding=0,

initial_capital=10000,

commission_type=strategy.commission.percent,

commission_value=0.05)

​

//////////////////////////////////////////////////////////////////////////////

// INPUTS

//////////////////////////////////////////////////////////////////////////////

​

pivotLen = input.int(5, "Pivot Length", minval=2)

emaLen = input.int(200, "EMA Trend Length")

adxLen = input.int(14, "ADX Length")

adxMin = input.float(20, "Minimum ADX")

​

minScore = input.int(2, "Minimum Divergence Score", minval=1, maxval=4)

​

slATR = input.float(1.5, "SL ATR Multiplier")

tpATR = input.float(3.0, "TP ATR Multiplier")

​

//////////////////////////////////////////////////////////////////////////////

// INDICATORS

//////////////////////////////////////////////////////////////////////////////

​

ema200 = ta.ema(close, emaLen)

​

rsi = ta.rsi(close, 14)

​

mfi = ta.mfi(hlc3, 14)

​

[macdLine, signalLine, hist] = ta.macd(close, 12, 26, 9)

​

obv = ta.obv

​

[_, _, adx] = ta.dmi(adxLen, adxLen)

​

atr = ta.atr(14)

​

//////////////////////////////////////////////////////////////////////////////

// PIVOTS

//////////////////////////////////////////////////////////////////////////////

​

phPrice = ta.pivothigh(high, pivotLen, pivotLen)

plPrice = ta.pivotlow(low, pivotLen, pivotLen)

​

phRSI = ta.pivothigh(rsi, pivotLen, pivotLen)

plRSI = ta.pivotlow(rsi, pivotLen, pivotLen)

​

phMFI = ta.pivothigh(mfi, pivotLen, pivotLen)

plMFI = ta.pivotlow(mfi, pivotLen, pivotLen)

​

phMACD = ta.pivothigh(macdLine, pivotLen, pivotLen)

plMACD = ta.pivotlow(macdLine, pivotLen, pivotLen)

​

phOBV = ta.pivothigh(obv, pivotLen, pivotLen)

plOBV = ta.pivotlow(obv, pivotLen, pivotLen)

​

//////////////////////////////////////////////////////////////////////////////

// STORAGE

//////////////////////////////////////////////////////////////////////////////

​

var float priceHigh1 = na

var float priceHigh2 = na

​

var float priceLow1 = na

var float priceLow2 = na

​

if not na(phPrice)

priceHigh2 := priceHigh1

priceHigh1 := phPrice

​

if not na(plPrice)

priceLow2 := priceLow1

priceLow1 := plPrice

​

//////////////////////////////////////////////////////////////////////////////

// RSI DIVERGENCE

//////////////////////////////////////////////////////////////////////////////

​

var float rsiHigh1 = na

var float rsiHigh2 = na

var float rsiLow1 = na

var float rsiLow2 = na

​

if not na(phRSI)

rsiHigh2 := rsiHigh1

rsiHigh1 := phRSI

​

if not na(plRSI)

rsiLow2 := rsiLow1

rsiLow1 := plRSI

​

bullRSI =

not na(priceLow1) and

not na(priceLow2) and

not na(rsiLow1) and

not na(rsiLow2) and

priceLow1 < priceLow2 and

rsiLow1 > rsiLow2

&#x200B;

bearRSI =

not na(priceHigh1) and

not na(priceHigh2) and

not na(rsiHigh1) and

not na(rsiHigh2) and

priceHigh1 > priceHigh2 and

rsiHigh1 < rsiHigh2

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// MFI DIVERGENCE

//////////////////////////////////////////////////////////////////////////////

&#x200B;

var float mfiHigh1 = na

var float mfiHigh2 = na

var float mfiLow1 = na

var float mfiLow2 = na

&#x200B;

if not na(phMFI)

mfiHigh2 := mfiHigh1

mfiHigh1 := phMFI

&#x200B;

if not na(plMFI)

mfiLow2 := mfiLow1

mfiLow1 := plMFI

&#x200B;

bullMFI =

not na(priceLow1) and

not na(priceLow2) and

not na(mfiLow1) and

not na(mfiLow2) and

priceLow1 < priceLow2 and

mfiLow1 > mfiLow2

&#x200B;

bearMFI =

not na(priceHigh1) and

not na(priceHigh2) and

not na(mfiHigh1) and

not na(mfiHigh2) and

priceHigh1 > priceHigh2 and

mfiHigh1 < mfiHigh2

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// MACD DIVERGENCE

//////////////////////////////////////////////////////////////////////////////

&#x200B;

var float macdHigh1 = na

var float macdHigh2 = na

var float macdLow1 = na

var float macdLow2 = na

&#x200B;

if not na(phMACD)

macdHigh2 := macdHigh1

macdHigh1 := phMACD

&#x200B;

if not na(plMACD)

macdLow2 := macdLow1

macdLow1 := plMACD

&#x200B;

bullMACD =

not na(priceLow1) and

not na(priceLow2) and

not na(macdLow1) and

not na(macdLow2) and

priceLow1 < priceLow2 and

macdLow1 > macdLow2

&#x200B;

bearMACD =

not na(priceHigh1) and

not na(priceHigh2) and

not na(macdHigh1) and

not na(macdHigh2) and

priceHigh1 > priceHigh2 and

macdHigh1 < macdHigh2

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// OBV DIVERGENCE

//////////////////////////////////////////////////////////////////////////////

&#x200B;

var float obvHigh1 = na

var float obvHigh2 = na

var float obvLow1 = na

var float obvLow2 = na

&#x200B;

if not na(phOBV)

obvHigh2 := obvHigh1

obvHigh1 := phOBV

&#x200B;

if not na(plOBV)

obvLow2 := obvLow1

obvLow1 := plOBV

&#x200B;

bullOBV =

not na(priceLow1) and

not na(priceLow2) and

not na(obvLow1) and

not na(obvLow2) and

priceLow1 < priceLow2 and

obvLow1 > obvLow2

&#x200B;

bearOBV =

not na(priceHigh1) and

not na(priceHigh2) and

not na(obvHigh1) and

not na(obvHigh2) and

priceHigh1 > priceHigh2 and

obvHigh1 < obvHigh2

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// SCORE SYSTEM

//////////////////////////////////////////////////////////////////////////////

&#x200B;

bullScore = 0

bullScore += bullRSI ? 1 : 0

bullScore += bullMFI ? 1 : 0

bullScore += bullMACD ? 2 : 0

bullScore += bullOBV ? 2 : 0

&#x200B;

bearScore = 0

bearScore += bearRSI ? 1 : 0

bearScore += bearMFI ? 1 : 0

bearScore += bearMACD ? 2 : 0

bearScore += bearOBV ? 2 : 0

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// FILTERS

//////////////////////////////////////////////////////////////////////////////

&#x200B;

bullTrend = close > ema200

&#x200B;

bearTrend = close < ema200

&#x200B;

strongTrend = adx > adxMin

&#x200B;

longSignal =

bullScore >= minScore and

bullTrend and

strongTrend

&#x200B;

shortSignal =

bearScore >= minScore and

bearTrend and

strongTrend

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// ENTRIES

//////////////////////////////////////////////////////////////////////////////

&#x200B;

if longSignal and strategy.position_size <= 0

strategy.entry("LONG", strategy.long)

&#x200B;

if shortSignal and strategy.position_size >= 0

strategy.entry("SHORT", strategy.short)

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// EXITS

//////////////////////////////////////////////////////////////////////////////

&#x200B;

longSL = strategy.position_avg_price - atr * slATR

longTP = strategy.position_avg_price + atr * tpATR

&#x200B;

shortSL = strategy.position_avg_price + atr * slATR

shortTP = strategy.position_avg_price - atr * tpATR

&#x200B;

strategy.exit(

"LONG EXIT",

from_entry="LONG",

stop=longSL,

limit=longTP)

&#x200B;

strategy.exit(

"SHORT EXIT",

from_entry="SHORT",

stop=shortSL,

limit=shortTP)

&#x200B;

//////////////////////////////////////////////////////////////////////////////

// PLOTS

//////////////////////////////////////////////////////////////////////////////

&#x200B;

plot(ema200, title="EMA 200", linewidth=2)

&#x200B;

plotshape(

longSignal,

title="LONG",

style=shape.triangleup,

location=location.belowbar,

size=size.small)

&#x200B;

plotshape(

shortSignal,

title="SHORT",

style=shape.triangledown,

location=location.abovebar,

size=size.small)

&#x200B;

alertcondition(longSignal, "Long Signal", "Bullish divergence setup")

alertcondition(shortSignal, "Short Signal", "Bearish divergence setup")

reddit.com
u/Plastic_Pirate_ — 22 days ago

How to use Tik Tok in India

I live in India. How do I use TikTok? Can anyone in India tell me an easy way in which I can monetize my channel by making videos.

reddit.com
u/Plastic_Pirate_ — 23 days ago

I work in the laboratory and I have a lot of time after 11 o'clock, so what should I do to earn side income?

I work in the laboratory from 6 am to 11 am, after that I waste time watching movies at home, I have had fights with my friends too, currently I am not able to go out of the house for a walk, I stay at home and get bored.Is there anything I can do from home to earn a side income?

reddit.com
u/Plastic_Pirate_ — 24 days ago