![]() |
|
| Discuss strange behavior at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Amibroker users, I'm new Amibroker user, so please be tolerant I have noticed very ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#1
|
|||
|
|||
|
Dear Amibroker users,
I'm new Amibroker user, so please be tolerant ![]() I have noticed very strange behavior (maybe it isn't strange at all just I don't know about sth). This is scenario : I wrote my first own transaction system, I decided to back test it and not all transactions are listed on transaction list. I see far more arrows than transactions on list, arrows show correct trasactions amount. When I click scan also correct transactions amount is displayed. Do you have any clue? Maybe my code will be helpful in this strange case : Code:
/* Otwieramy pozycje na podstawie sygnału i zamykamy po ustalonej ilosci dni */ /* 5, 10 , 15, 20*/ PositionSize = MarginDeposit = 1; CloseDistance = 5; /* 02 przeciecie ADX i średniej ADX */ Buy = Cross(ADX(), MA(ADX(), 3)) && PDI() > MDI(); Short = Cross(ADX(), MA(ADX(), 3)) && PDI() < MDI(); Buy= ExRemSpan(Buy, CloseDistance); Short = ExRemSpan(Short, CloseDistance); Sell = Ref(Buy, -CloseDistance); Cover = Ref(Short, -CloseDistance); Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); Short = ExRem(Short, Cover); Cover = ExRem(Cover, Short); PlotShapes( Buy * shapeUpArrow + Short * shapeDownArrow, IIf( Buy, colorGreen, colorRed ) ); PlotShapes( Cover * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy, colorAqua, colorDarkRed ) ); Plot( MA(ADX(), 3), "MA(ADX)", colorPink, styleLine | styleOwnScale ); Plot( ADX(), "ADX", colorBrown, styleLine | styleOwnScale ); thanks a lot in advance. |
| Sponsored Links |
|
|
| Sponsored Links |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum
Rules Disclaimer & Disclosure and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum.
• Disclaimer: Trading or investing in stocks & commodities
is a high risk activity. Any action you choose to take in the markets
is totally your own responsibility. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
• Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein.
The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.