Optimizing Defparam flatafter

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186759 quote
    soulintactsoulintact
    Participant
    Senior

    Any advice how to optimize Defparam flatafter, thanks!

    #186771 quote
    nonethelessnonetheless
    Participant
    Master

    You can use an exit code instead, something like:

    if time >= 210000 then
    sell at market
    exitshort at market
    endif

    then optimize the time in steps of 10000

    Note that this will only work if your time frame has a bar equal to your exit time; eg the above would not work on a daily TF

    soulintact thanked this post
    #186774 quote
    soulintactsoulintact
    Participant
    Senior

    Thank you very much for your prompt helpful reply!

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

Optimizing Defparam flatafter


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
soulintact @soulintact Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by soulintactsoulintact
4 years, 7 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 01/27/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...