OPG Indicator

If the OPG is smaller than -0.03%, open a long position with take profit at yesterday's close.
If the OPG is greater than 0.03%, open a short position with take profit at yesterday's close.
Close all positions at midday.
This is a Price Gap strategy, which means we are looking to open a long / short position at market open and close the position as soon as the gap from today's open and yesterday's close is filled. Do not hold position for more than half a day, the Price Gap should fill within a few hours.
Buy condition :
Green arrow appears, open long position and exit trade as soon as price reaches yesterday's close.
Sell condition :
Red arrow appears, open short position and exit trade as soon as price reaches yesterday's close.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.