Real Values?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102621 quote
    StuartStuart
    Participant
    Junior
    f1=high[0]
    f2=high[1]
    IF f1>f2 THEN
    c2=f1

     

    On a trading program is it possible to record c2 in the above as a value., and reset it after a trade?

    #102623 quote
    VonasiVonasi
    Moderator
    Master

    Welcome to the forums.

    Is your question strategy related? If it is then you should have posted in the ProOrder forum and not the indicator based ProBuilder forum. Also please use the ‘Insert PRT Code’ button when posting code.

    Your question is not very clear – any value can be stored or changed at the close of any bar. If you want to retain it as a value then just store it within any IF… THEN conditions that you place an order within and use IF NOT ONMARKET to stop it being changed after the trade is on.

    f1=high[0]
    f2=high[1]
    IF f1>f2 THEN
    c2=f1
    endif
    
    if not onmarket and (your conditions) then
    buy 1 contract at market
    myvalue = c2
    endif
    
    
Viewing 2 posts - 1 through 2 (of 2 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

Real Values?


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Stuart @stuart Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by VonasiVonasi
7 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/15/2019
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...