Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def WVAP_Buy_Entry_cond_ =
- if (VWAP_Buy_Entry_when==VWAP_Buy_Entry_when.above) then
- VWAP_price_for_compare > VWAP_buy_entry_compare_to
- else if (VWAP_Buy_Entry_when==VWAP_Buy_Entry_when.below) then
- VWAP_price_for_compare < VWAP_buy_entry_compare_to
- else no;
- def WVAP_Sell_Entry_cond_ =
- if (VWAP_Sell_Entry_when==VWAP_Sell_Entry_when.above) then
- VWAP_price_for_compare > VWAP_sell_entry_compare_to
- else if (VWAP_Sell_Entry_when==VWAP_Sell_Entry_when.below) then
- VWAP_price_for_compare < VWAP_sell_entry_compare_to
- else no;
- def WVAP_Buy_Exit_cond_ =
- if (VWAP_Buy_Exit_when==VWAP_Buy_Exit_when.above) then
- VWAP_price_for_compare > VWAP_buy_exit_compare_to
- else if (VWAP_Buy_Exit_when==VWAP_Buy_Exit_when.below) then
- VWAP_price_for_compare < VWAP_buy_exit_compare_to
- else no;
- def WVAP_Sell_Exit_cond_ =
- if (VWAP_Sell_Exit_when==VWAP_Sell_Exit_when.above) then
- VWAP_price_for_compare > VWAP_sell_exit_compare_to
- else if (VWAP_Sell_Exit_when==VWAP_Sell_Exit_when.below) then
- VWAP_price_for_compare < VWAP_sell_exit_compare_to
- else no;
- #conds
- def WVAP_Buy_Entry_cond = WVAP_Buy_Entry_cond_ and !WVAP_Buy_Entry_cond_[1];
- def WVAP_Buy_Exit_cond = WVAP_Buy_Exit_cond_ and !WVAP_Buy_Exit_cond_[1];
- def WVAP_Sell_Entry_cond= WVAP_Sell_Entry_cond_ and !WVAP_Sell_Entry_cond_[1];
- def WVAP_Sell_Exit_cond = WVAP_Sell_Exit_cond_ and !WVAP_Sell_Exit_cond_[1];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement