money management robot

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #120496 quote
    remy92400remy92400
    Participant
    Average

    Bonjour, J’aurais besoin d’un petit coup de main concernant le money management pour un robot sur le forex, la stratégie est la suivante:

    – achat quand clôture au dessus de la MM20 (voir capture) ET stoploss calculé en pourcentage du capital et de ce qu’on est prêt à risquer, le stop est placé au bas de la bougie qui a cassé la MM20

    – fermeture de la position quand une bougie clôture en dessous de la MM20

    defparam cumulateorders=false
    
    //money management
    capital=10000 //capital initial
    risque=2 //risque en pourcentage
    
    capitalavecprofits=capital+strategyprofit
    risquemax=round(capitalavecprofits*(risque/100))
    
    // Conditions pour ouvrir une position acheteuse
    IF close crosses over average[20] THEN
    stoploss= tradeprice-low
    PositionSize = abs(round((risquemax/StopLoss)/PointValue)*pipsize)
    BUY PositionSize SHARES AT MARKET
    ENDIF
    
    Capture-3.jpg Capture-3.jpg
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

money management robot


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
remy92400 @remy92400 Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/25/2020
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...