
اس حکمت عملی کا بنیادی نظریہ یہ ہے کہ خریدنے کے سگنل کے طور پر بغیر کسی اشارے کی قیادت کی لائن کی تلاش کی جائے ، اور جب قیمت پہلے K لائن کی کم سے نیچے گرتی ہے تو اس کی جگہ خالی کردی جائے۔ اس حکمت عملی نے اس خصوصیت کا فائدہ اٹھایا ہے کہ قیادت کی K لائن پر چھوٹا سا اشارہ ہے ، جس سے ظاہر ہوتا ہے کہ کثیر جہتی طاقت مضبوط ہے ، اور اسٹاک کی قیمتوں میں اضافے کا امکان زیادہ ہے۔ اس کے ساتھ ہی ، پچھلی K لائن کی کم حد کو نقصان کی حیثیت سے ، خطرے کو مؤثر طریقے سے کنٹرول کیا جاسکتا ہے۔
اس حکمت عملی میں بغیر کسی رہنمائی کے بیجنگ کے لائن میں داخل ہونے کا انتخاب کیا گیا ہے ، اور اس سے پہلے کی لائن کی کم قیمت کو روکنے کے لئے استعمال کیا گیا ہے ، جس سے رجحان کے حالات میں منافع کو مؤثر طریقے سے پکڑا جاسکتا ہے۔ تاہم ، اس حکمت عملی میں کچھ حدود بھی ہیں ، جیسے کہ اسٹاپ نقصان کی پوزیشن کافی لچکدار نہیں ہے ، منافع کے اہداف کی کمی وغیرہ۔ اس حکمت عملی کو زیادہ مستحکم اور موثر بنانے کے لئے ، دیگر اشارے کے فلٹرنگ سگنل متعارف کرانے ، اسٹاپ نقصان کی پوزیشن کو بہتر بنانے اور منافع کے اہداف کو ترتیب دینے جیسے طریقوں سے بہتری لائی جاسکتی ہے۔
The main idea of this strategy is to find bullish candles without upper wicks as buy signals and close positions when the price breaks below the low of the previous candle. The strategy utilizes the characteristic of bullish candles with very small upper wicks, indicating strong bullish momentum and a higher probability of continued price increases. At the same time, using the low of the previous candle as a stop-loss level can effectively control risk.
This strategy captures profits effectively in trending markets by selecting bullish candles without upper wicks for entry and using the low of the previous candle for stop-loss. However, the strategy also has certain limitations, such as inflexible stop-loss placement and lack of profit targets. Improvements can be made by introducing other indicators to filter signals, optimizing stop-loss positions, and setting profit targets to make the strategy more robust and effective.
/*backtest
start: 2024-04-13 00:00:00
end: 2024-05-13 00:00:00
period: 1h
basePeriod: 15m
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © nagpha
//@version=5
strategy("My strategy", overlay=true, margin_long=100, margin_short=100)
candleBodySize = math.abs(open - close)
// Calculate candle wick size
candleWickSize = high - close
// Calculate percentage of wick to candle body
wickPercentage = (candleWickSize / candleBodySize) * 100
// Check if candle is bullish and wick is less than 1% of the body
isBullish = close > open
isWickLessThan5Percent = wickPercentage < 5
longCondition = isBullish and isWickLessThan5Percent
if (longCondition)
// log.info("long position taken")
strategy.entry("Long Entry", strategy.long)
float prevLow = 0.0
prevLow := request.security(syminfo.tickerid, timeframe.period, low[1], lookahead=barmerge.lookahead_on)
float closingPrice = close
//plot(closingPrice, "Close Price", color.purple, 3)
//plot(prevLow, "Previous Low", color.red, 3)
//log.info("Outside: {0,number,#}",closingPrice)
//log.info("Outside: {0,number,#}",prevLow)
if closingPrice < prevLow and strategy.position_size > 0
//log.info("inside close: {0,number} : {0,number}",closingPrice,prevLow)
// log.info("position exited")
strategy.close("Long Entry")
longCondition := false
prevLow := 0
isBullish := false
//plot(series=strategy.position_size > 0 ? prevLow : na, color = color.new(#40ccfb,0), style=plot.style_cross,linewidth = 5)