PROTECTED SOURCE SCRIPT
Cập nhật AlAlawi Strategy

Hello Experts / Trolls;
I had written this strategy for a while and although I know how to color my charts, I wish for some expert advice or just some trolls to bring light to the codes weakness area's.
Period = isdwm?timestamp(2012, 01, 01, 00, 00):isintraday?timestamp(2018, 04, 01, 00, 00):timestamp(2018, 04, 01, 00, 00)
The above line of code for example lets my 4H and 1H charts suffer from a small size of testing and I need to change the dates manually, any idea to let a more dynamic approach and accomodate a 1 minute to 4h charts solution without having to play with the dates manually every time.
I also see a huge difference in results when applying this script on a Heikin-Ashi vs Candlestick chart!
So when pyramiding (upto 15) is applied on this strategy, the numbers starts boosting like crazy too!
This is a rough code for now, let me know where to work on the code or just like and share your opinion on this.
I had written this strategy for a while and although I know how to color my charts, I wish for some expert advice or just some trolls to bring light to the codes weakness area's.
Period = isdwm?timestamp(2012, 01, 01, 00, 00):isintraday?timestamp(2018, 04, 01, 00, 00):timestamp(2018, 04, 01, 00, 00)
The above line of code for example lets my 4H and 1H charts suffer from a small size of testing and I need to change the dates manually, any idea to let a more dynamic approach and accomodate a 1 minute to 4h charts solution without having to play with the dates manually every time.
I also see a huge difference in results when applying this script on a Heikin-Ashi vs Candlestick chart!
So when pyramiding (upto 15) is applied on this strategy, the numbers starts boosting like crazy too!
This is a rough code for now, let me know where to work on the code or just like and share your opinion on this.
Phát hành các Ghi chú
Sadly neither trolls or experts are chipping in .. but here are a few changesAdded a Higher Time Frame to weight in on the position direction confirmation ....
Figured out a few repainting doubts so decided to take the figures from the previous close.
Lowered the Position size from a Lot to 10K on each order and added in a slippage range of 5 ticks.
Swing Trades usually has better results on higher time frames ... so Low Capital Accounts (Think Twice).
Now retesting this script for more issues ... and would like to hear from users out of my Bubble.
Phát hành các Ghi chú
Fine tuned to more real time usage, now the script calculates on every tick by default and added a 1 point of slippage to allow more of real life affect on closing trades.The Lower timeframe is the new addon - the script would confirm only after the lower time frame had added a confirming close to the direction of our anticipated position.
My biggest brain freeze now with this Period line where I need to manually adjust the Date to have the orders not go beyond the 2000 limit!
Phát hành các Ghi chú
Refined the Lengths and now need to go forward test this strategy.Phát hành các Ghi chú
False for the Recalculate after Order is Filled Default setting ....I hope some trolls would come and bash this strategy now
Phát hành các Ghi chú
Adjusting the Default Length Values and Added the Period Inputs.Anyone care to test if this is a Holy Grail or Holy Fail ?
Phát hành các Ghi chú
Due to pine and its way of calculating things, I'm avoiding anything related to the Current Bars High / Low / Close.I feel comfortable somewhat to test this strategy out now.
Phát hành các Ghi chú
Factored in Commission per Order at the cost of 3 USD, since I am using FX usually and that should cover the Major Pairs spreads at a 0.1 LotPhát hành các Ghi chú
Cleaning excess textPhát hành các Ghi chú
Cleansed Up to Go LivePhát hành các Ghi chú
Go Live StartMã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.