Creating a MA crossover strategy

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #123670 quote
    pascaltmn
    Participant
    New

    Hello,

    I am trying to build a moving average crossover strategy that uses the entire bankroll for every trade (to compound previous gains), and not just a fixed size (e.g. 1 contract).

    Unfortunately, I can’t make it work properly…

    Is there a code snippet you could point me to that achieves this?

    Thank you.

    Pascal

    #123671 quote
    pascaltmn
    Participant
    New

    My bad… should have posted this in Probuilder support. Will re-post there now.

    #123679 quote
    Vonasi
    Moderator
    Master

    Do not double post – just ask the Moderators to move your post. I have done this now and will delete any double posts.

    ProOrder is the correct place for strategy questions and not ProBuilder which is for indicator questions.

    #123681 quote
    Vonasi
    Moderator
    Master

    Dividing the capital by the price will tell you how many contracts to buy but in real life you can’t trade like this using spread betting or DFD’s. You need to keep some of your capital to cover margin otherwise as soon as price moves against you you will get a margin call and the position will be closed.

    EDIT: Sorry Grahal but your reply saying the same thing got deleted when I deleted the double post in the ProBuilder forum.

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

Creating a MA crossover strategy


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
pascaltmn @pascaltmn Participant
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/28/2020
Status: Active
Attachments: No files
Logo Logo
Loading...