interruzione trading automatico

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #189184 quote
    cimsal
    Participant
    Junior

    gentilmente come si puo interrompere un sistema automatico quando raggiungo un target di 100 punti o un loss di 100 punti  grazie

    #189193 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    Punti = PositionPrice * PositionPerf / PipSize
    IF OnMarket THEN
       IF Punti >= 100 OR Punti <= -100 THEN
          SELL      AT MARKET
          EXITSHORT AT MARKET
       ENDIF
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

interruzione trading automatico


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
cimsal @cimsal Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
3 years, 11 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 03/02/2022
Status: Active
Attachments: No files
Logo Logo
Loading...