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!
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
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.
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