count of bars

Viewing 16 post (of 16 total)
  • Author
    Posts
  • #76185 quote
    VonasiVonasi
    Moderator
    Master

    i want to say:

    if my open order is negative -€ since 2 bars or more than -100€ the system must sell this order and buy in other direction

    You do seem to like to move the goal posts a lot. Also we are a long way from the original topic. Calculating in Euro just adds unnecessary complication – you can work out using your own calculation how many pips = 100 euro.

    a = summation[2](close < positionprice) >= 2 
    b = close < positionprice - (your calculated number of pips that equals 100 euro)
    
    if a or b then 
    sellshort 1 contract at market
    endif
    
    immo_vienna and Nicolas thanked this post
Viewing 16 post (of 16 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

count of bars


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 15 replies,
has 3 voices, and was last updated by VonasiVonasi
8 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/17/2018
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...