Code for different times and sequential positionsize.

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #107340 quote
    Vonasi
    Moderator
    Master
    once ps = 0
    if (your conditions) then
    ps = ps + 1
    buy ps contracts at market
    endif

    Looks like a great way to wave goodbye to your bank balance to me!

    #107379 quote
    deleted271219
    Member
    New

    Ideas for the idea.

     

    but no function.

    variable.png variable.png variable1.png variable1.png variable2.png variable2.png
    #107502 quote
    Fran55
    Participant
    Veteran

    Please Vonasi…

    if countofposition = 1 then

    Something similar to this Code to could be used to add another position at another time

    Example:

    If countofposition = 1 and ctimeb = 12:00-13:00 and other conditions to buy then

    #107514 quote
    Vonasi
    Moderator
    Master

    If countofposition = 1 and ctimeb = 12:00-13:00 and other conditions to buy then

    You are losing me again! Due to not much detail! I feel there is something in your head but it is not coming out of your fingertips! 🙂

    The logic in this statement will just open a new position if you are already on the market with a long position size of 1 and your time and other entry conditions are met.

    #107542 quote
    Juan Salas
    Participant
    Master

    Hi Fran55,

    Since the communication in English is becoming difficult, we should try to open the same post in the Spanish forum and you can explain your idea to me in Spanish. (Como veo que la comunicación está resultando un poco didicil en inglés, quizás podrías abrir el mismo hilo en el forum de español, y así lo podemos comentar en español, ok??)

    Saludos

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.

Code for different times and sequential positionsize.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Fran55 @fran55 Participant
Summary

This topic contains 19 replies,
has 4 voices, and was last updated by Juan Salas
6 years, 5 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 09/10/2019
Status: Active
Attachments: 3 files
Logo Logo
Loading...