Real Values?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #102621 quote
    Stuart
    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
    Vonasi
    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.

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 Vonasi
6 years, 7 months ago.

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