Close for daily earns

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #138430 quote
    Fran55Fran55
    Participant
    Veteran

    How to do if a bot earns 3% on the day, regardless of the number of operations, do not operate until the Next day.

    #138435 quote

    Keep in mind that 3% is visible at the end of the bar.
    Try it.

    DailyProfit = 3
    once Trade = 1
    If intradaybarindex=0 then
    MyProfit=STRATEGYPROFIT
    Trade=1
    endif
    If StrategyProfit>=MyProfit+DailyProfit*(close/100) then
    Trade=0
    endif
    if Trade=1 and conditions then
    buy 1 lot at market
    endif
    
    #138463 quote
    Fran55Fran55
    Participant
    Veteran

    Perfect!

     

    Thanks Mauro!

Viewing 3 posts - 1 through 3 (of 3 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

Close for daily earns


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fran55 @fran55 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Fran55Fran55
6 years, 3 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 07/05/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...