TradingView
melihtuna
12 окт 2020 г., 10:06

Profit Maximizer PMax Strategy - Long-Short 

3X Long Swipe Token / USDFTX

Описание

I developed a different strategy perspective for the Profit Maximizer PMax indicator prepared by Kıvanç Özbilgiç.

When you come to the settings section;
- You will see 2 options as Straregy Type. You can test the price and pmax intersections as different strategies.
- I added the Long-Short option for spot traders to calculate the profitability rate correctly. Spot traders should not choose this option.

Here you can set alarms on the original indicator with the parameters you find successful.

Türkçe:
Kıvanç Özbilgiç tarafından hazırlanan Profit Maximizer PMax indikatör için farklı bir strateji bakış açısı geliştirdim.

Ayarlar bölümüne geldiğinizde;
- Straregy Type olarak 2 seçenek göreceksiniz. Fiyat kesişimi ve pmax kesişimlerini, farklı stratejiler olarak test edebilirsiniz.
- Spot işlem yapanlar için karlılık oranını doğru hesaplayabilmeleri için Long-Short seçeneği ekledim. Spot işlem yapanların bu seçeneği seçmemeleri gerekmektedir.

Burada başarılı bulduğunuz parametreler ile orijinal indikatör üzerinde alarmlar kurabilirsiniz.


Комментарии
OmniTEK
Thank you for this script, it is by far the most effective trading signals I have ever seen for QQQ/SPY once set up properly. You're a genius!
glengrant000
guys, tradingview doesn't let me to publish a simple addon to this strategy, so I post the implementations here.

========================================
add these line at the end of the script if you want to add :
- stop loss
- take profit
- date range filter

@melihtuna be free to implement to your script
;)
========================================

// User Options to Change Inputs (%)
stopPer = input(5.0, title='Stop Loss %', type=input.float,group="SL/TP") / 100
takePer = input(10.0, title='Take Profit %', type=input.float,group="SL/TP") / 100

testPeriodSwitch = input(false, "Custom Backtesting Date Range")

// Determine where you've entered and in what direction
longStop1 = strategy.position_avg_price * (1 - stopPer)
shortStop1 = strategy.position_avg_price * (1 + stopPer)
shortTake = strategy.position_avg_price * (1 - takePer)
longTake = strategy.position_avg_price * (1 + takePer)

if strategy.position_size > 0
strategy.exit(id="Close Long", stop=longStop1, limit=longTake)
if strategy.position_size < 0
strategy.exit(id="Close Short", stop=shortStop1, limit=shortTake)

i_startTime = input(defval = timestamp("01 Sep 2017 13:30 +0000"), title = "Backtesting Start Time", type = input.time)
i_endTime = input(defval = timestamp("30 Sep 2021 19:30 +0000"), title = "Backtesting End Time", type = input.time)
timeCond = (time > i_startTime) and (time < i_endTime)
isPeriod = testPeriodSwitch == true ? timeCond : true
// === /END
if not isPeriod
strategy.cancel_all()
strategy.close_all()
yuceltoluyag
@glengrant000, The codes are giving errors, I think TW is changing some things as I write here. Any chance of posting this on your own profile?
dogekao
Hii genius , can be used for btc 15min ? Thanks for share
sanketkkoli
I like your code, I want to understand, How Pmax is calculated ?
yavuz990
Emeğinize sağlık. Rica etsek tarih başlangıcı filtresi ekleyebilir misiniz?
labryant
@melihtuna Thanks for sharing this. Can you confirm the signals don't repaint?
OmniTEK
@labryant, I have been using this indicator for over a week with incredible success. There is no repainting that I have noticed at all.
akinmirac2
Merhaba, sadece Long pozisyonları arayan ben için harika bir strategy olmuş. Başlangıç yılı ekleyebilir misiniz lütfen? Ben uğraştım fakat çözemedim. Emeğinize sağlık.
omererdogan2
Başlangıç yılı da ekleseniz süper olur açıkcası
Ещё