Market orders in both directions…

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #69224 quote
    lisamitch50
    Participant
    Junior

    Sup all.

     

    Admins – If in wrong place please feel free to shout at me and move if needed.***

     

    I have tried to look over the forums to find the answer in other posts, but not found anything as yet.

    This will probably be an easy fix for some of you, but for me its not easy –

     

    I have a simple strategy that is profitable (Only just) and part of the reason its not as profitable as my manual trades is that when a trade closes another signal is generated (MA Crosses) but the automated system does not open a new trade, it seems to just close the trade that it was in and then waits for the next signal.

    After several weeks of calculating the trades it has taken by hand, the system would have been between 15 and 25% more profitable than it is already, but due to the fact its not taking trades at the same time as closing them the system is missing out on 15-25 trades over the life of the strategy..

     

    Im looking for help or someone to point me towards the code that would help in order to get the system to close a trade when it needs too but then also open a trade at the same time please.

    Example would be – If MFI is >80 and 50MA crosses below 200MA then sell, exit when MFI<20 and 50 crosses above 200MA. (This should then trigger a buy but it only closes the position…..)

     

    Any help would be appreciated.

     

    Many thanks.

     

    Mitch

    #69225 quote
    GraHal
    Participant
    Master

    It would be so much easier (than us guessing?) if you posted your full code on here as then somebody may spot the problem in a few seconds?

    You sure you don’t mean / want SellShort in the example below

    If MFI is >80 and 50MA crosses below 200MA then
    Sell
    #69239 quote
    Vonasi
    Moderator
    Master

    My guess is also that you have a SELL where a SELLSHORT should be.

    BUY = Enter Long (Will close any short positions)

    SELL = Close Long Position

    SELLSHORT = Open Short Position (Will close any long positions)

    EXITSHORT = Close Short Position

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Market orders in both directions…


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 2 replies,
has 3 voices, and was last updated by Vonasi
7 years, 10 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 04/26/2018
Status: Active
Attachments: No files
Logo Logo
Loading...